国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

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

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

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

問題描述

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

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

問題解答

回答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的完成狀態(完成后移除?我注)。例如:

<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
相關文章:
主站蜘蛛池模板: 成 人 动漫在线观看网站网站 | 在线免费看a | 久久成人18免费网站 | 久久99国产精品亚洲 | 久久久久久九九 | 国产91成人| 日韩欧美一及在线播放 | 欧美三级欧美成人高清www | 成人性版蝴蝶影院污 | 日本暖暖在线视频 | 久久99精品热在线观看15 | 毛片在线全部免费观看 | a毛片久久免费观看 | 日本欧美韩国一区二区三区 | 欧美日本俄罗斯一级毛片 | 国产欧美专区在线观看 | 国产免费一区二区在线看 | 国产亚洲精品国看不卡 | 国产免费久久精品 | 国产成人免费午夜在线观看 | 欧美日韩在线观看区一二 | 欧美一级日本一级韩国一级 | 午夜美女网站 | 久久中文字幕久久久久91 | 欧美一级片在线看 | 性欧美美国级毛片 | 欧美一区二区三区免费高 | 欧美色视频日本片高清在线观看 | 91精品国产免费久久久久久 | 99色播| 欧美第一页草草影院浮力 | 国产亚洲精品成人一区看片 | 久久国产视频一区 | 成人三级做爰在线观看男女 | 在线播放亚洲视频 | 乱子伦农村xxxx | 在线观看免费国产 | 91成人在线免费视频 | 日韩欧美视频一区 | 成人做爰免费网站 | 毛片在线观看视频 |