亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

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

瀏覽:77日期: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
相關文章:
主站蜘蛛池模板: 久久国产精品岛国搬运工 | 欧美成人a级猛男视频片 | 国产精品吹潮香蕉在线观看 | 综合色图 | 日韩国产 | 国产日产高清欧美一区二区三区 | 亚洲国产欧美精品 | 免费看成人毛片日本久久 | 国产精品久久成人影院 | 欧美大陆日韩一区二区三区 | 97国内免费久久久久久久久久 | 欧美国产亚洲精品a第一页 欧美国产亚洲一区 | 国产三级精品播放 | 三级毛片在线 | 产国语一级特黄aa大片 | 欧美啪啪毛片一区二区 | 香蕉视频免费在线看 | 伊人网影院 | 亚洲毛片在线看 | 黄色大全免费看 | 国产一级做a爱片久久毛片a | 日本粉嫩毛片视频 | 免费在线观看黄色网址 | 一级做a爱过程免费视频时看 | 亚洲国产成人九九综合 | 免费麻豆国产一区二区三区四区 | 中文字幕曰韩一区二区不卡 | 欧美亚洲香蕉 | 黄色大片在线 | 黄色毛片视频免费 | 国产午夜影院 | 亚洲在线看片 | 国产盗摄福利视频 | 免费成人黄色大片 | 亚洲国产精品综合久久20 | 国内精品在线播放 | 自偷自偷自亚洲首页精品 | 国产成人免费永久播放视频平台 | 国产乱视频在线观看播放 | 国产男女性特黄录像 | 日本免费黄色片 |