style:添加吸顶效果
Showing
2 changed files
with
10 additions
and
0 deletions
1 | .home-sticky { | ||
2 | position:sticky; | ||
3 | top:0; | ||
4 | width: 100%; | ||
5 | background-color: #ffffff; | ||
6 | z-index: 10000; | ||
7 | } | ||
1 | .layui-nav .layui-nav-item a:hover, .layui-nav .layui-this a { | 8 | .layui-nav .layui-nav-item a:hover, .layui-nav .layui-this a { |
2 | font-weight: 600; | 9 | font-weight: 600; |
3 | background-color: #0091FF; | 10 | background-color: #0091FF; |
... | @@ -35,6 +42,7 @@ div.top-logo { | ... | @@ -35,6 +42,7 @@ div.top-logo { |
35 | height: 70px!important; | 42 | height: 70px!important; |
36 | padding-top: 20px; | 43 | padding-top: 20px; |
37 | margin: 0 auto; | 44 | margin: 0 auto; |
45 | background-color: #ffffff; | ||
38 | } | 46 | } |
39 | 47 | ||
40 | div.top-logo ::-webkit-input-placeholder { /* WebKit browsers */ | 48 | div.top-logo ::-webkit-input-placeholder { /* WebKit browsers */ | ... | ... |
... | @@ -24,6 +24,7 @@ document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/sta | ... | @@ -24,6 +24,7 @@ document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/sta |
24 | document.writeln("</head>"); | 24 | document.writeln("</head>"); |
25 | document.writeln(""); | 25 | document.writeln(""); |
26 | document.writeln("<body>"); | 26 | document.writeln("<body>"); |
27 | document.writeln("<div class='home-sticky'>"); | ||
27 | document.writeln(" <div class=\'top-logo\'>"); | 28 | document.writeln(" <div class=\'top-logo\'>"); |
28 | document.writeln(" <div class=\'top_logo_content\'>"); | 29 | document.writeln(" <div class=\'top_logo_content\'>"); |
29 | document.writeln(" <h1><a href=\'" + localhostPaht + "/index.html\'><img src=\'" + localhostPaht + "/staticImages/logo.png\' alt=\'西安市不动产登记平台\' /></a></h1>"); | 30 | document.writeln(" <h1><a href=\'" + localhostPaht + "/index.html\'><img src=\'" + localhostPaht + "/staticImages/logo.png\' alt=\'西安市不动产登记平台\' /></a></h1>"); |
... | @@ -90,6 +91,7 @@ document.writeln(" <li id='zxjf' class=\'layui-nav-item\'><a href=\'" | ... | @@ -90,6 +91,7 @@ document.writeln(" <li id='zxjf' class=\'layui-nav-item\'><a href=\'" |
90 | document.writeln(" <li id='evaluate' class=\'layui-nav-item\'><a href=\'" + localhostPaht + "/staticViews/evaluate.html\'>好差评</a></li>"); | 91 | document.writeln(" <li id='evaluate' class=\'layui-nav-item\'><a href=\'" + localhostPaht + "/staticViews/evaluate.html\'>好差评</a></li>"); |
91 | document.writeln(" </ul>"); | 92 | document.writeln(" </ul>"); |
92 | document.writeln(" </div> "); | 93 | document.writeln(" </div> "); |
94 | document.writeln(" </div> "); | ||
93 | document.writeln("</body>"); | 95 | document.writeln("</body>"); |
94 | document.writeln(""); | 96 | document.writeln(""); |
95 | document.writeln("</html>"); | 97 | document.writeln("</html>"); | ... | ... |
-
Please register or sign in to post a comment