css3 transform對其餘樣式影響,(尤爲是position:flixed)

一、transform 會爲當前元素添加 position : relative 特性;

當 magin 爲負值的時候,就會覆蓋到前面的 元素,html

然而若是給前面元素添加了transform 屬性後,前面的元素就會在上面框架

 

二、transform 會限制 position:flxed  

當一個元素 有 postion :flxed 屬性當時候,應該是相對於文檔定位post

然而,當父元素中有 transform 屬性的時候,該元素的 postion:flxed 屬性就會變成 absolute 。插件

當引用 iscroll 等框架等時候 ,尤爲要注意orm

 

我的博客 : 不少有用的插件    https://gilea.cn/htm

 

 https://www.cnblogs.com/jiebbablog

相關文章
相關標籤/搜索