翻译自: CSS Background Transparency Without Affecting Child Elements, Through RGBa And Filters 当今的大部分网页设计都包含了半透明的元素.但用CSS实现想要的效果却没那么简单. 现存的问题 如果我们想要一个半透明背景,有两种实现方式: 利用CSS和opacity属性 建立一个24位PNG背景图片用opacity的问题除了 需要通过麻烦的语法来兼容所有浏览器, 还有不单该元素自身背景透明了,它的子元素...
hashnode.fancyoung.com2 min readNo responses yet.