PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > HTML+CSS > 正文

    使用css3给页面添加阴影效果

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:使用css3给页面添加阴影效果?12345678910111213141516171819202122<!doctype html><html><head><style type="text/css">body:before { ...
    使用css3给页面添加阴影效果

    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    <!doctype html>
    <html>
    <head>
    <style type="text/css">
    body:before {
              content: "";
              position: fixed;
              top: -10px;
              left: 0;
              width: 100%;
              height: 10px;
              -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
              -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
              box-shadow: 0px 0px 10px rgba(0,0,0,.8);
              z-index: 100;
    }
    </style>
    </head>
    <body>
    这是一个css3为页面添加阴影效果的例子!I love OutOfmemory.cn!
    </body>
    </html>
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-70-1936-1.html
    相关热词搜索: