feat:首页的编写
Showing
4 changed files
with
254 additions
and
70 deletions
... | @@ -30,24 +30,56 @@ div.subject { | ... | @@ -30,24 +30,56 @@ div.subject { |
30 | /*新闻 */ | 30 | /*新闻 */ |
31 | div.top-logo { | 31 | div.top-logo { |
32 | width: 1200px; | 32 | width: 1200px; |
33 | height: 70px; | ||
34 | padding-top: 20px; | ||
33 | } | 35 | } |
36 | |||
37 | div.top-logo ::-webkit-input-placeholder { /* WebKit browsers */ | ||
38 | font-size: 13px; | ||
39 | } | ||
40 | |||
41 | div.top-logo ::-moz-placeholder { /* Mozilla Firefox 19+ */ | ||
42 | font-size: 13px; | ||
43 | } | ||
44 | |||
45 | div.top-logo :-ms-input-placeholder { /* Internet Explorer 10+ */ | ||
46 | font-size: 13px; | ||
47 | } | ||
48 | .top_logo_content { | ||
49 | height: 40px; | ||
50 | width: 100%; | ||
51 | margin: 0 auto; | ||
52 | } | ||
53 | div.top-logo .top_logo_search { | ||
54 | float: left; | ||
55 | width: 350px; | ||
56 | position: relative; | ||
57 | margin-left: 400px; | ||
58 | } | ||
59 | div.top-logo .top_logo_search input { | ||
60 | border-radius: 50px; | ||
61 | } | ||
62 | div.top-logo .login { | ||
63 | float: right; | ||
64 | margin-top: 8px; | ||
65 | } | ||
66 | div.top-logo .top_logo_search i { | ||
67 | position: absolute; | ||
68 | right: 10px; | ||
69 | top: 11px; | ||
70 | cursor: pointer; | ||
71 | } | ||
72 | |||
34 | /*end*/ | 73 | /*end*/ |
35 | 74 | ||
36 | .top-logo h1 { | 75 | .top-logo h1 { |
37 | display: inline-block; | 76 | display: inline-block; |
38 | padding: 21px 0; | 77 | float: left; |
39 | } | ||
40 | |||
41 | .top-logo ul { | ||
42 | list-style: none; | ||
43 | float: right; | ||
44 | clear: right; | ||
45 | margin-top: 33px; | ||
46 | } | 78 | } |
47 | /*------------------首页 end------------*/ | 79 | /*------------------首页 end------------*/ |
48 | 80 | ||
49 | .top-logo ul li { | 81 | .top-logo ul li { |
50 | float: left; | 82 | display: inline-block; |
51 | padding: 0 8px; | 83 | padding: 0 8px; |
52 | } | 84 | } |
53 | 85 | ||
... | @@ -55,16 +87,25 @@ div.top-logo { | ... | @@ -55,16 +87,25 @@ div.top-logo { |
55 | border-right: 1px solid grey; | 87 | border-right: 1px solid grey; |
56 | } | 88 | } |
57 | 89 | ||
58 | div.nav { | 90 | div.navigation { |
59 | width: 100%; | ||
60 | background: #006cff; | ||
61 | text-align: center; | 91 | text-align: center; |
62 | } | 92 | } |
93 | .navigation .layui-nav-item { | ||
94 | width: 100px; | ||
95 | position: relative; | ||
96 | margin: 0 22px; | ||
97 | } | ||
98 | .layui-bg-blue { | ||
99 | background-color: #006CFF!important; | ||
100 | } | ||
63 | 101 | ||
64 | div.nav ul { | 102 | .layui-nav-item:not(:first-child)::before { |
65 | list-style: none; | 103 | content: ''; |
66 | width: 1200px; | 104 | position: absolute; |
67 | display: inline-block; | 105 | height: 22px; |
106 | border-left: 1px solid #ccc; | ||
107 | top: 21px; | ||
108 | left: -20px; | ||
68 | } | 109 | } |
69 | 110 | ||
70 | div.nav ul li { | 111 | div.nav ul li { |
... | @@ -72,6 +113,7 @@ div.nav ul li { | ... | @@ -72,6 +113,7 @@ div.nav ul li { |
72 | margin: 21px auto; | 113 | margin: 21px auto; |
73 | width: 149px; | 114 | width: 149px; |
74 | border-left: 1px solid #3389ff; | 115 | border-left: 1px solid #3389ff; |
116 | cursor: pointer; | ||
75 | } | 117 | } |
76 | 118 | ||
77 | div.nav ul li:first-child { | 119 | div.nav ul li:first-child { |
... | @@ -93,18 +135,32 @@ div.banner, div.c_one, div.c_two, div.c_three, div.c_four, div.c_five, div.foote | ... | @@ -93,18 +135,32 @@ div.banner, div.c_one, div.c_two, div.c_three, div.c_four, div.c_five, div.foote |
93 | } | 135 | } |
94 | 136 | ||
95 | div.banner { | 137 | div.banner { |
96 | background: yellow; | ||
97 | height: 500px; | 138 | height: 500px; |
139 | background-color: #7ed74e; | ||
140 | position: relative; | ||
141 | } | ||
142 | |||
143 | .banner .swiper_img { | ||
144 | width: 100%; | ||
145 | height: 100%; | ||
98 | } | 146 | } |
99 | 147 | ||
100 | div.banner ul { | 148 | .banner .banner_title { |
149 | position: absolute; | ||
150 | left: 0; | ||
151 | right: 0; | ||
152 | bottom: 50px; | ||
153 | margin: auto; | ||
154 | } | ||
155 | |||
156 | div.banner .banner_title { | ||
101 | list-style: none; | 157 | list-style: none; |
102 | width: 1200px; | 158 | width: 1200px; |
103 | display: inline-block; | 159 | display: inline-block; |
104 | margin-top: 350px; | 160 | margin-top: 350px; |
105 | } | 161 | } |
106 | 162 | ||
107 | div.banner ul li { | 163 | div.banner .banner_title li { |
108 | width: 250px; | 164 | width: 250px; |
109 | height: 100px; | 165 | height: 100px; |
110 | background-color: #ffffff; | 166 | background-color: #ffffff; |
... | @@ -123,7 +179,47 @@ div.banner ul li a { | ... | @@ -123,7 +179,47 @@ div.banner ul li a { |
123 | cursor: pointer; | 179 | cursor: pointer; |
124 | } | 180 | } |
125 | 181 | ||
182 | /* ---------------法律法规 start----------------------- */ | ||
183 | .laws_regulations { | ||
184 | width: 1200px; | ||
185 | margin: 0 auto; | ||
186 | padding: 60px 0; | ||
187 | } | ||
188 | .laws_regulations .regulations, .policy { | ||
189 | border-radius: 2px; | ||
190 | width: 48%; | ||
191 | height: 370px; | ||
192 | border: 1px solid #DEDEDE; | ||
193 | } | ||
194 | .laws_regulations .policy{ | ||
195 | float: right; | ||
196 | padding-right: 5px; | ||
197 | } | ||
198 | |||
199 | .laws_regulations .regulations{ | ||
200 | float: left; | ||
201 | padding-left: 5px; | ||
202 | } | ||
203 | .laws_regulations .regulations h2 a{ | ||
204 | display: block; | ||
205 | padding: 20px; | ||
206 | box-sizing: border-box; | ||
207 | border-bottom: 1px solid #E6E6E6; | ||
208 | } | ||
209 | .laws_regulations .regulations h2 a p{ | ||
210 | font-weight: 600; | ||
211 | color: #4A4A4A; | ||
212 | line-height: 20px; | ||
213 | } | ||
214 | .laws_regulations .regulations h2 i{ | ||
215 | font-style: normal; | ||
216 | float: right; | ||
217 | font-size: 14px; | ||
218 | color: #9B9B9B; | ||
219 | line-height: 14px; | ||
220 | } | ||
126 | 221 | ||
222 | /* ---------------end----------------------- */ | ||
127 | div.c_one { | 223 | div.c_one { |
128 | } | 224 | } |
129 | 225 | ||
... | @@ -267,7 +363,7 @@ div.c_two ul li { | ... | @@ -267,7 +363,7 @@ div.c_two ul li { |
267 | overflow: hidden; | 363 | overflow: hidden; |
268 | margin-left: 2.88%; | 364 | margin-left: 2.88%; |
269 | padding: 40px 36px; | 365 | padding: 40px 36px; |
270 | border: 2px solid #e3e3e3; | 366 | border: 1px solid #E6E6E6; |
271 | } | 367 | } |
272 | 368 | ||
273 | div.c_two ul li:first-child { | 369 | div.c_two ul li:first-child { | ... | ... |
images/banner.jpg
0 → 100644
19.7 KB
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html lang="en"> | 2 | <html lang="en"> |
3 | |||
3 | <head> | 4 | <head> |
4 | <meta charset="UTF-8"> | 5 | <meta charset="UTF-8"> |
5 | <title>网上“一窗办事”登记系统</title> | 6 | <title>网上“一窗办事”登记系统</title> |
6 | <meta name="copyright" content=" ® 技术支持 All Rights Reserved"/> | 7 | <meta name="copyright" content=" ® 技术支持 All Rights Reserved" /> |
7 | <meta name="robots" content="index,follow"/> | 8 | <meta name="robots" content="index,follow" /> |
8 | <meta name="googlebot" content="index,follow,archive"/> | 9 | <meta name="googlebot" content="index,follow,archive" /> |
9 | <link rel="alternate icon" type="image/png" href="images/logo-realestate.png"> | 10 | <link rel="alternate icon" type="image/png" href="images/logo-realestate.png"> |
10 | <link rel='icon' href='favicon.ico' type='image/x-ico' /> | 11 | <link rel='icon' href='favicon.ico' type='image/x-ico' /> |
11 | <meta name="description" content=""/> | 12 | <meta name="description" content="" /> |
12 | <meta name="Keywords" content=""/> | 13 | <meta name="Keywords" content="" /> |
13 | <!-- <script type="text/javascript" src="/js/jquery.min.js"></script>--> | 14 | <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" /> |
14 | <link type="text/css" rel="stylesheet" href="./css/global.css"/> | 15 | <link type="text/css" rel="stylesheet" href="./css/global.css" /> |
15 | </head> | 16 | </head> |
17 | |||
16 | <body> | 18 | <body> |
17 | <div class="subject top-logo"> | 19 | <div class="subject top-logo"> |
18 | <h1><a href="index.html"><img src="images/logo.jpg" alt="西安市不动产登记平台"/></a></h1> | 20 | <div class="top_logo_content"> |
19 | <ul> | 21 | <h1><a href="index.html"><img src="images/logo.jpg" alt="西安市不动产登记平台" /></a></h1> |
22 | |||
23 | <div class="top_logo_search"> | ||
24 | <input type="text" name="title" required lay-verify="required" placeholder="请输入关键字搜索" autocomplete="off" | ||
25 | class="layui-input"> | ||
26 | <i class="layui-icon layui-icon-search" style="font-size: 14px;"></i> | ||
27 | </div> | ||
28 | |||
29 | <ul class="login"> | ||
20 | <li>登录</li> | 30 | <li>登录</li> |
21 | <li>注册</li> | 31 | <li>注册</li> |
22 | </ul> | 32 | </ul> |
23 | </div> | 33 | </div> |
24 | <div class="nav"> | 34 | </div> |
25 | <ul class="subject"> | 35 | <div class="navigation"> |
26 | <li><a href="">首页</a></li> | 36 | <ul class="layui-nav layui-bg-blue" lay-filter=""> |
27 | <li><a href="">新闻动态</a></li> | 37 | <li class="layui-nav-item layui-this"><a href="">首页</a></li> |
28 | <li><a href="">业务办理</a></li> | 38 | <li class="layui-nav-item"><a href="">新闻动态</a></li> |
29 | <li><a href="">政策法规</a></li> | 39 | <li class="layui-nav-item"><a href="">业务办理</a></li> |
30 | <li><a href="">办事指南</a></li> | 40 | <li class="layui-nav-item"><a href="">办事指南</a></li> |
31 | <li><a href="">查验中心</a></li> | 41 | <li class="layui-nav-item"> |
32 | <li><a href="">在线缴费</a></li> | 42 | <a href="javascript:;">查验中心</a> |
33 | <li><a href="">好差评</a></li> | 43 | <dl class="layui-nav-child"> |
44 | <!-- 二级菜单 --> | ||
45 | <dd><a href="">移动模块</a></dd> | ||
46 | <dd><a href="">后台模版</a></dd> | ||
47 | <dd><a href="">电商平台</a></dd> | ||
48 | </dl> | ||
49 | </li> | ||
50 | <li class="layui-nav-item"><a href="">在线缴费</a></li> | ||
51 | <li class="layui-nav-item" class="item_last_child"><a href="">好差评</a></li> | ||
34 | </ul> | 52 | </ul> |
35 | </div> | 53 | </div> |
36 | <div class="banner"> | 54 | <div class="banner"> |
37 | <ul class="subject"> | 55 | <div class="layui-carousel" id="banner_swiper"> |
56 | <div carousel-item> | ||
57 | <div class="swiper_item"> | ||
58 | <img class="swiper_img" title="刘亦菲" src="./images/banner.jpg" /> | ||
59 | </div> | ||
60 | <div class="swiper_item"> | ||
61 | <img class="swiper_img" title="刘亦菲" src="./images/banner.jpg" /> | ||
62 | </div> | ||
63 | </div> | ||
64 | </div> | ||
65 | <ul class="banner_title"> | ||
38 | <li><a href="">查询档案</a></li> | 66 | <li><a href="">查询档案</a></li> |
39 | <li><a href="">进度查询</a></li> | 67 | <li><a href="">进度查询</a></li> |
40 | <li><a href="">在线预约</a></li> | 68 | <li><a href="">在线预约</a></li> |
41 | <li><a>网上预审</a></li> | 69 | <li><a>网上预审</a></li> |
42 | </ul> | 70 | </ul> |
43 | </div> | 71 | </div> |
44 | <div class="c_one"> | 72 | <div class="c_one"> |
45 | <div class="subject"> | 73 | <div class="subject"> |
46 | <div class="news"> | 74 | <div class="news"> |
47 | <h2><a href=""><span>新闻动态</span><i>查看全部 ></i></a></h2> | 75 | <h2><a href=""><span>新闻动态</span><i>查看全部 ></i></a></h2> |
48 | <a class="news-img" href="" title="图片新闻地信中心开展外业安全生产监控系统培训工作"><img src="images/news_demo.jpg" | 76 | <a class="news-img" href="" title="图片新闻地信中心开展外业安全生产监控系统培训工作"><img src="images/news_demo.jpg" |
49 | alt="图片新闻地信中心开展外业安全生产监控系统培训工作"/></a> | 77 | alt="图片新闻地信中心开展外业安全生产监控系统培训工作" /></a> |
50 | <ul> | 78 | <ul> |
51 | <li><a href="" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li> | 79 | <li><a href="" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li> |
52 | <li><a href="" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li> | 80 | <li><a href="" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li> |
... | @@ -68,39 +96,57 @@ | ... | @@ -68,39 +96,57 @@ |
68 | </ul> | 96 | </ul> |
69 | </div> | 97 | </div> |
70 | </div> | 98 | </div> |
71 | </div> | 99 | </div> |
72 | <div class="c_two"> | 100 | <div class="c_two"> |
73 | <div class="subject"> | 101 | <div class="subject"> |
74 | <h2><a href="">办事指南</a></h2> | 102 | <h2><a href="">便民服务</a></h2> |
75 | <ul> | 103 | <ul> |
76 | <li> | 104 | <li> |
77 | <img src="images/two_s_1.jpg"/> | 105 | <img src="images/two_s_1.jpg" /> |
78 | <h6>土地</h6> | 106 | <h6>土地</h6> |
79 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> | 107 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> |
80 | </li> | 108 | </li> |
81 | <li> | 109 | <li> |
82 | <img src="images/two_s_1.jpg"/> | 110 | <img src="images/two_s_1.jpg" /> |
83 | <h6>房屋建筑</h6> | 111 | <h6>房屋建筑</h6> |
84 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> | 112 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> |
85 | </li> | 113 | </li> |
86 | <li> | 114 | <li> |
87 | <img src="images/two_s_1.jpg"/> | 115 | <img src="images/two_s_1.jpg" /> |
88 | <h6>构筑物</h6> | 116 | <h6>构筑物</h6> |
89 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> | 117 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> |
90 | </li> | 118 | </li> |
91 | <li> | 119 | <li> |
92 | <img src="images/two_s_1.jpg"/> | 120 | <img src="images/two_s_1.jpg" /> |
93 | <h6>森林林木</h6> | 121 | <h6>森林林木</h6> |
94 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> | 122 | <p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p> |
95 | </li> | 123 | </li> |
96 | </ul> | 124 | </ul> |
97 | </div> | 125 | </div> |
98 | </div> | 126 | </div> |
99 | <div class="c_three"> | 127 | <!-- 法律法规 --> |
128 | <div class="laws_regulations "> | ||
129 | <div class="regulations"> | ||
130 | <h2> | ||
131 | <a href=""> | ||
132 | <p> | ||
133 | <span>法律法规</span> | ||
134 | </p> | ||
135 | <i>查看全部 ></i> | ||
136 | </a> | ||
137 | </h2> | ||
138 | </div> | ||
139 | <div class="policy"> | ||
140 | 你的内容 3/12 | ||
141 | </div> | ||
142 | </div> | ||
143 | <div class="c_three"> | ||
100 | <div class="subject"> | 144 | <div class="subject"> |
101 | <a class="c_t_banner" href=""><img src="images/three_img.jpg"/></a> | 145 | <a class="c_t_banner" href=""><img src="images/three_img.jpg" /></a> |
102 | <dl> | 146 | <dl> |
103 | <dt><h2>常见问题</h2></dt> | 147 | <dt> |
148 | <h2>常见问题</h2> | ||
149 | </dt> | ||
104 | <dd><a href="">基础问题</a></dd> | 150 | <dd><a href="">基础问题</a></dd> |
105 | <dd><a href="">继承登记</a></dd> | 151 | <dd><a href="">继承登记</a></dd> |
106 | <dd><a href="">一手商品房办证</a></dd> | 152 | <dd><a href="">一手商品房办证</a></dd> |
... | @@ -113,43 +159,66 @@ | ... | @@ -113,43 +159,66 @@ |
113 | <dd><a href="">夫妻离婚变更</a></dd> | 159 | <dd><a href="">夫妻离婚变更</a></dd> |
114 | </dl> | 160 | </dl> |
115 | <dl class="interact"> | 161 | <dl class="interact"> |
116 | <dt><h2>政民互动</h2></dt> | 162 | <dt> |
163 | <h2>政民互动</h2> | ||
164 | </dt> | ||
117 | <dd> | 165 | <dd> |
118 | <a> | 166 | <a> |
119 | <img src=""/> | 167 | <img src="" /> |
120 | <p>在线评价</p> | 168 | <p>在线评价</p> |
121 | </a> | 169 | </a> |
122 | </dd> | 170 | </dd> |
123 | <dd> | 171 | <dd> |
124 | <a> | 172 | <a> |
125 | <img src=""/> | 173 | <img src="" /> |
126 | <p>在线留言</p> | 174 | <p>在线留言</p> |
127 | </a> | 175 | </a> |
128 | </dd> | 176 | </dd> |
129 | <dd> | 177 | <dd> |
130 | <a> | 178 | <a> |
131 | <img src=""/> | 179 | <img src="" /> |
132 | <p>征集调查</p> | 180 | <p>征集调查</p> |
133 | </a> | 181 | </a> |
134 | </dd> | 182 | </dd> |
135 | <dd> | 183 | <dd> |
136 | <a> | 184 | <a> |
137 | <img src=""/> | 185 | <img src="" /> |
138 | <p>即时聊天</p> | 186 | <p>即时聊天</p> |
139 | </a> | 187 | </a> |
140 | </dd> | 188 | </dd> |
141 | </dl> | 189 | </dl> |
142 | </div> | 190 | </div> |
143 | </div> | 191 | </div> |
144 | <div class="c_four"> | 192 | <div class="c_four"> |
145 | <div class="subject"> dfadfasdf</div> | 193 | <div class="subject"> dfadfasdf</div> |
146 | </div> | 194 | </div> |
147 | <div class="c_five"> | 195 | <div class="c_five"> |
148 | <div class="subject"> dfadfasdf</div> | 196 | <div class="subject"> dfadfasdf</div> |
149 | </div> | 197 | </div> |
150 | <div class="footer"> | 198 | <div class="footer"> |
151 | <div class="subject"> dfadfasdf</div> | 199 | <div class="subject"> dfadfasdf</div> |
152 | </div> | 200 | </div> |
153 | 201 | ||
154 | </body> | 202 | </body> |
203 | |||
155 | </html> | 204 | </html> |
205 | <script src="https://www.layuicdn.com/layui/layui.js"></script> | ||
206 | <script> | ||
207 | layui.use('carousel', function () { | ||
208 | var carousel = layui.carousel; | ||
209 | //建造实例 | ||
210 | carousel.render({ | ||
211 | elem: '#banner_swiper' | ||
212 | , width: '100%' //设置容器宽度 | ||
213 | , arrow: 'always' //始终显示箭头 | ||
214 | , autoplay: true | ||
215 | , height: '500px' | ||
216 | }); | ||
217 | }); | ||
218 | //注意:导航 依赖 element 模块,否则无法进行功能性操作 | ||
219 | layui.use('element', function () { | ||
220 | var element = layui.element; | ||
221 | |||
222 | //… | ||
223 | }); | ||
224 | </script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -28,6 +28,15 @@ | ... | @@ -28,6 +28,15 @@ |
28 | <div>条目5</div> | 28 | <div>条目5</div> |
29 | </div> | 29 | </div> |
30 | </div> | 30 | </div> |
31 | <div class="layui-carousel" id="test1"> | ||
32 | <div carousel-item> | ||
33 | <div>条目1</div> | ||
34 | <div>条目2</div> | ||
35 | <div>条目3</div> | ||
36 | <div>条目4</div> | ||
37 | <div>条目5</div> | ||
38 | </div> | ||
39 | </div> | ||
31 | <div id="test1"></div> | 40 | <div id="test1"></div> |
32 | <button type="button" class="layui-btn">一个标准的按钮</button> | 41 | <button type="button" class="layui-btn">一个标准的按钮</button> |
33 | </div> | 42 | </div> |
... | @@ -63,4 +72,14 @@ | ... | @@ -63,4 +72,14 @@ |
63 | , count: 50 //数据总数,从服务端得到 | 72 | , count: 50 //数据总数,从服务端得到 |
64 | }); | 73 | }); |
65 | }); | 74 | }); |
75 | layui.use('carousel', function () { | ||
76 | var carousel = layui.carousel; | ||
77 | //建造实例 | ||
78 | carousel.render({ | ||
79 | elem: '#test1' | ||
80 | , width: '100%' //设置容器宽度 | ||
81 | , arrow: 'always' //始终显示箭头 | ||
82 | //,anim: 'updown' //切换动画方式 | ||
83 | }); | ||
84 | }); | ||
66 | </script> | 85 | </script> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment