亚洲免费在线视频-亚洲啊v-久久免费精品视频-国产精品va-看片地址-成人在线视频网

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

請問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
相關文章:
主站蜘蛛池模板: 国产成年人 | 国产大学生自拍 | 一级毛片视频在线 | 免费 视频 1级 | 日日撸夜夜操 | 欧美色欧 | 亚洲精品区一区二区三区四 | 欧美日韩一区二区三区视频在线观看 | 国产区精品一区二区不卡中文 | 亚洲制服欧美自拍另类 | 欧美日韩国产58香蕉在线视频 | 久草在线视频看看 | 俄罗斯aaaa一级毛片 | 亚洲精品综合 | 99久久久免费精品免费 | 可以看毛片的网址 | 久久网站在线观看 | 国产日产欧美a级毛片 | 国产成人精品免费视频 | 鲁老汉精品视频在线观看 | 国产三级小视频在线观看 | 99精品视频在线在线视频观看 | 国产日产韩产麻豆1区 | 国产欧美精品区一区二区三区 | 日本成人不卡视频 | 精品女厕沟底拍撒尿 | 一区二区三区在线观看视频 | 日本专区| 国产成人啪精品视频免费软件 | 亚洲性爰视频 | 美女视频免费黄的 | 色综合天天综合网看在线影院 | 久久精品国产精品亚洲 | 亚洲永久 | 亚洲天堂毛片 | 欧美视频二区 | 久久精品视频在线观看 | 国产欧美一区二区另类精品 | 狠狠色狠狠综合久久 | 九九在线精品视频播放 | 中文字幕亚洲精品久久 |