html怎么设置透明度


当前第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-color:rgb(0,152,50);**/

                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的行内元素有哪些

xHtmlHtml的区别是什么

Html如何设置语言为中文

Html如何设置背景色

Html的基础控件有哪些

Html怎么设置编码

Html 如何添加链接

更多相关阅读请进入《Html》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...