日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

关于 CSS3 backface-visiable 与 overflow 属性的冲突

發(fā)布時間:2025/3/15 CSS 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 关于 CSS3 backface-visiable 与 overflow 属性的冲突 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

最近在做一個 flip 效果的時候發(fā)現(xiàn)一個奇怪的問題,設置了?backface-visiable:hidden;overflow:hidden 的元素反轉180度以后背面沒有被隱藏,最終還是被Google出來了,overflow會覆蓋transform-style: preserve-3d屬性,還有以下一些元素會導致transform-style: preserve-3d失效:

參考地址:http://codepen.io/thebabydino/details/rACbl

Don't set overflow: hidden on elements with 3D transformed children

By?Ana Tudor

DESCRIPTION

The 'back' face of the card has a?rotateY(180deg)?set on it. Both faces have?backface-visibility: hidden?set. Setting overflow: hidden on their parent (the card) causes the 3D transformed face ('back' face) to disappear and?backface-visibility: hidden?to be ignored for the other.

From the spec (link):

The following CSS property values require the user agent to create a flattened representation of the descendant elements before they can be applied, and therefore override the behavior of?transform-style: preserve-3d:

  • overflow: any value other than?visible.

  • filter: any value other than?none.

  • clip: any value other than?auto.

  • clip-path: any value other than?none.

  • isolation: used value of?isolate.

  • mask-image: any value other than?none.

  • mask-box-source: any value other than?none.

  • mix-blend-mode: any value other than normal.

The computed value of?transform-style?is not affected.

轉載于:https://www.cnblogs.com/zxdesign/p/4120327.html

總結

以上是生活随笔為你收集整理的关于 CSS3 backface-visiable 与 overflow 属性的冲突的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。