Html分层的box-shadow效果的代码

 

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <style>
            body{
                margin: 0;
            }
            .clearfix {
              overflow: auto;
            }
            .shadow_box{
                box-shadow: 0px 3px 10px 1px #888888;
            }
            div.sticky{
                 
                position: sticky;
                top: 0;
                 
                background:azure;
                text-align: center;
                 
                 
            }
            .img1{
                float: left;
                clear: both;
                margin-left:100px;
                opacity: 0.8;
                overflow: auto;
                 
            }
             
            ul{
                list-style-type: 0;
                margin: 0;
                padding: 0;
                width: 7%;
                height: 100%;
                background-color:rgb(147, 171, 235) ;
                position:fixed;
                overflow: auto;
                border-radius: 25px;
                 
                 
            }
            li a{
                display: block;
                color:#000;
                padding: 8px 16px;
                text-decoration: none;
                font-family:"黑体";
                 
            }
            li:hover{
                background-color: #555;
                color: white;
                 
            }
             
        </style>
        <title>官网 @ www.xuepai.net</title>
    </head>
     
     
    <body>
         
        <div class="sticky clearfix shadow_box">
            <img class="img1" src="img/4.png" width="60px" height="60px "  />
             
        </div>
        <div>
            <ul>
                <li><a href="index.html">核心科技</a></li>
                <li><a href="index.html">党政板块</a></li>
                <li><a href="index.html">经营情况</a></li>
                <li><a href="index.html">未来发展</a></li>
                <li><a href="index.html">联系我们@ www.haoshilao.net</a></li>
            </ul>
        </div>
        <div style="padding-bottom: 2000px;"></div>
         
    </body>
</html>

 

posted @ 2026-01-05 21:32  zxcva  阅读(15)  评论(0)    收藏  举报