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

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

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

瀏覽:83日期: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
相關文章:
主站蜘蛛池模板: 男人的天堂亚洲 | 九九色视频 | 亚洲欧美成人综合久久久 | 亚洲精品一区二区手机在线 | 黄视频免费在线 | 亚洲精品国产专区91在线 | 欧美性色生活片天天看99 | 午夜一级毛片免费视频 | 国产91丝袜在线播放九色 | 亚洲精品人成网线在线 | 亚洲国产精品免费观看 | 久久精品亚洲综合一品 | 怡红院在线a男人的天堂 | 一及黄色毛片 | 一级在线 | 欧洲 | 成年免费观看 | 在线播放一级片 | 亚洲国产精品一区二区三区 | 美女啪啪网站又黄又免费 | 国产在线播放一区二区 | 亚洲日本高清成人aⅴ片 | 波多野结衣被强在线视频 | 欧美精品aaa久久久影院 | 亚洲国产精品第一区二区三区 | 成人精品亚洲人成在线 | 欧美毛片a级毛片免费观 | 久草精品免费 | 成人国产精品一级毛片视频 | 欧美成人a视频 | 精品国产无限资源免费观看 | 99精品国产综合久久久久 | 国产午夜毛片v一区二区三区 | 免费a级毛片大学生免费观看 | 久久久久依人综合影院 | 色网站在线观看 | 日韩一级欧美一级在线观看 | 成人黄色免费网站 | 免费播放aa在线视频成人 | 国产在线高清视频 | 成人毛片网 | 国产成人深夜福利在线观看 |