当前第2页 返回上一页
开发实践
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <html>
<head>
<meta charset= "utf-8" >
<title>Opacity</title>
<meta http-equiv= "X-UA-Compatible" content= "IE=7,chrome=1.0" >
<style type= "text/css" rel= "stylesheet" >
*{
padding: 0px;
margin:0px;
}
.mainbox{
width: 200px;
height: 200px;
clear: both;
overflow: hidden;
margin: 100px auto 0px auto;
background-color: #f06;
}
.sub-mainbox
{
width: 250px;
height: 200px;
margin: -50px auto 0px auto;
border:1px solid white;
border-radius: 5px;
background:url(path/my_bg.jpg) no-repeat center center scroll;
opacity: 0.7;
filter:alpha(opacity=70);
}
</style>
</head>
<body>
<p class = "mainbox" >
</p>
<p class = "sub-mainbox" >
</p>
</body>
</html>
|
以上就是html怎么设置透明度的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
Html中如何美化展示json格式数据
Html5 main标签怎么居中?main标签的居中实例介绍
Html的标题总结推荐
Html的行内元素有哪些
xHtml与Html的区别是什么
Html如何设置语言为中文
Html如何设置背景色
Html的基础控件有哪些
Html怎么设置编码
Html 如何添加链接
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » html怎么设置透明度