av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術文章
文章詳情頁

請問css3的transition屬性可否被子元素繼承?

瀏覽:93日期:2023-08-01 08:17:14

問題描述

如題,就是給父元素設置上transition,那么子元素會有transition么?

在w3c規(guī)范里是否有這個的規(guī)范?能否給個鏈接

問題解答

回答1:

文檔地址: http://dev.w3.org/csswg/css-transitions/CRTL+F 查'inherited'結果都是NO.這些屬性包括:

transition-propertytransition-durationtransition-timing-functiontransition-delay Propertytransition Shorthand

關于繼承性,文檔中提到了一點

EXAMPLE 4

An example where maintaining the set of completed transitions is necessary would be a transition on an inherited property, where the parent specifies a transition of that property for a longer duration (say, transition: 4s text-indent) and a child element that inherits the parent’s value specifies a transition of the same property for a shorter duration (say, transition: 1s text-indent). Without the maintenance of this set of completed transitions, implementations could start additional transitions on the child after the initial 1 second transition on the child completes.

這里提到了一個場景,如果parent指定的transition作用到的屬性和child指定的transtions作用到的屬性是同一個,而且parent的transtion過渡時間更長,那么就需要自己去維護transition的完成狀態(tài)(完成后移除?我注)。例如:

<p class='parent'> <p class='child'></p></p>.parent { transition: 4s text-indent;}.child{ transition: 1s text-indent;}

如有錯誤歡迎指正。

回答2:

不能。我在谷歌下試了,不能。

回答3:

不能 https://developer.mozilla.org/en-US/docs/Web/CSS/transition請問css3的transition屬性可否被子元素繼承?

標簽: CSS
相關文章:
主站蜘蛛池模板: 久久免费精品视频 | 国产中文| 91在线精品视频 | 天天操天天射综合网 | 国产福利在线 | 亚洲美女网站 | 成人h片在线观看 | 日一区二区 | 国产精品免费在线 | 亚洲欧美国产毛片在线 | 91精品国产91久久久久久丝袜 | 久久久妇女国产精品影视 | 一区二区三区中文字幕 | 国产精品一区二区在线播放 | 久久99精品久久久久久国产越南 | 国内精品成人 | www.国产| 人人鲁人人莫人人爱精品 | 麻豆一区二区三区精品视频 | 精品久久香蕉国产线看观看亚洲 | 欧美涩| 日韩精品在线看 | julia中文字幕久久一区二区 | 国产小视频在线观看 | 亚洲三区视频 | 成人做爰999| 久久久久久久久91 | 久久久成人精品 | 中文字幕三区 | 欧美一区二区三区四区视频 | 久久久久黑人 | av免费在线播放 | 国产在线永久免费 | 免费亚洲婷婷 | 久久国产日韩 | 国产精品久久国产精品久久 | 成人免费在线播放 | 91久久精品一区二区二区 | 久久免费精品 | 草草视频在线观看 | 成人国产一区二区三区精品麻豆 |