午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

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

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

瀏覽:187日期: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 | 国产精品久久久久精 | 成人精品一二三区 | 97啪啪| 欧美久久久久久久 | 日本大片在线播放 | 色综合中文网 | 草久久久久久 | 日韩一区二区三区在线观看 | 国产黄色高清视频 | 91丁香| 免费久久久 | 在线a网 | 久久久久久蜜桃 | 欧美黄色短片 | 亚洲性综合 | 日本一级理论片在线大全 | 五月天婷婷丁香网 | 激情网色| 国产精品九九视频 | 裸体大乳女做爰69 | 午夜伦理在线 | 日韩欧美亚洲一区二区 | 色眯眯av | 欧美高清在线 | 亚洲精品视频在线播放 | 欧美一区二区在线视频 | 日韩成人精品 |