css opacity属性
翻译结果:
英 [əʊˈpæsəti] 美 [oʊˈpæsəti]
n.不透明性;费解;难懂;模糊
复数: opacities
css opacity属性 语法
作用:设置元素的不透明级别。
语法:opacity: value|inherit;
说明:value 规定不透明度。从 0.0 (完全透明)到 1.0(完全不透明)。inherit 应该从父元素继承 opacity 属性的值。
注释:IE8 以及更早的版本支持替代的 filter 属性。例如:filter:Alpha(opacity=50)。
css opacity属性 示例
<!DOCTYPE html>
<html>
<head>
<style>
div
{
background-color:red;
opacity:0.5;
filter:Alpha(opacity=50); /* IE8 以及更早的浏览器 */
}
</style>
</head>
<body>
<div>本元素的不透明度是 0.5。请注意,文本和背景色都受到不透明级别的影响。</div>
</body>
</html>运行实例 »
点击 "运行实例" 按钮查看在线实例
热门推荐
CSS 相关词典
- keyframes 翻译 示例 语法
- animation 翻译 示例 语法
- animation-name 翻译 示例 语法
- animation-duration 翻译 示例 语法
- animation-timing-function 翻译 示例 语法
- animation-delay 翻译 示例 语法
- animation-iteration-count 翻译 示例 语法
- animation-direction 翻译 示例 语法
- animation-play-state 翻译 示例 语法
- animation-fill-mode 翻译 示例 语法
- background 翻译 示例 语法
- background-attachment 翻译 示例 语法
- background-color 翻译 示例 语法
- background-image 翻译 示例 语法
- background-position 翻译 示例 语法
- resize 翻译 示例 语法
- background-repeat 翻译 示例 语法
- background-clip 翻译 示例 语法
- outline-offset 翻译 示例 语法
- background-origin 翻译 示例 语法
- background-size 翻译 示例 语法
- nav-up 翻译 示例 语法
- border 翻译 示例 语法
- nav-right 翻译 示例 语法
- nav-left 翻译 示例 语法
- nav-index 翻译 示例 语法
- border-bottom 翻译 示例 语法
- nav-down 翻译 示例 语法
- icon 翻译 示例 语法
- box-sizing 翻译 示例 语法
- appearance 翻译 示例 语法
- transition-delay 翻译 示例 语法
- transition-timing-function 翻译 示例 语法
- transition-duration 翻译 示例 语法
- transition-property 翻译 示例 语法
- transition 翻译 示例 语法
- backface-visibility 翻译 示例 语法
- border-bottom-color 翻译 示例 语法
- border-bottom-style 翻译 示例 语法
- perspective-origin 翻译 示例 语法
- border-bottom-width 翻译 示例 语法
- perspective 翻译 示例 语法
- border-color 翻译 示例 语法
- transform-style 翻译 示例 语法
- border-left 翻译 示例 语法
- border-left-color 翻译 示例 语法
- transform-origin 翻译 示例 语法
- border-left-style 翻译 示例 语法
- border-left-width 翻译 示例 语法
- transform 翻译 示例 语法
- border-right 翻译 示例 语法
- border-right-color 翻译 示例 语法
- word-wrap 翻译 示例 语法
- border-right-style 翻译 示例 语法
- word-break 翻译 示例 语法
- border-right-width 翻译 示例 语法
- text-wrap 翻译 示例 语法
- border-style 翻译 示例 语法
- text-shadow 翻译 示例 语法
- border-top 翻译 示例 语法
- border-top-color 翻译 示例 语法
- border-top-style 翻译 示例 语法
- text-overflow 翻译 示例 语法
- border-top-width 翻译 示例 语法
- text-outline 翻译 示例 语法
- border-width 翻译 示例 语法
- text-justify 翻译 示例 语法
- outline 翻译 示例 语法
- outline-color 翻译 示例 语法
- text-emphasis 翻译 示例 语法
- outline-style 翻译 示例 语法
- punctuation-trim 翻译 示例 语法
- outline-width 翻译 示例 语法
- hanging-punctuation 翻译 示例 语法
- border-bottom-left-radius 翻译 示例 语法
- word-spacing 翻译 示例 语法
- border-bottom-right-radius 翻译 示例 语法
- white-space 翻译 示例 语法
- border-image 翻译 示例 语法
- border-image-outset 翻译 示例 语法
- unicode-bidi 翻译 示例 语法
- border-image-repeat 翻译 示例 语法
- border-image-slice 翻译 示例 语法
- border-image-source 翻译 示例 语法
- text-transform 翻译 示例 语法
- border-image-width 翻译 示例 语法
- border-radius 翻译 示例 语法
- text-indent 翻译 示例 语法
- border-top-left-radius 翻译 示例 语法
- text-decoration 翻译 示例 语法
- border-top-right-radius 翻译 示例 语法
- box-shadow 翻译 示例 语法
- text-align 翻译 示例 语法
- line-height 翻译 示例 语法
- letter-spacing 翻译 示例 语法
- direction 翻译 示例 语法
- overflow-x 翻译 示例 语法
- overflow-y 翻译 示例 语法
- color 翻译 示例 语法
- overflow-style 翻译 示例 语法