255a87a3 by 任超

feat:首页的编写

1 parent e448e8d1
......@@ -30,24 +30,56 @@ div.subject {
/*新闻 */
div.top-logo {
width: 1200px;
height: 70px;
padding-top: 20px;
}
div.top-logo ::-webkit-input-placeholder { /* WebKit browsers */
font-size: 13px;
}
div.top-logo ::-moz-placeholder { /* Mozilla Firefox 19+ */
font-size: 13px;
}
div.top-logo :-ms-input-placeholder { /* Internet Explorer 10+ */
font-size: 13px;
}
.top_logo_content {
height: 40px;
width: 100%;
margin: 0 auto;
}
div.top-logo .top_logo_search {
float: left;
width: 350px;
position: relative;
margin-left: 400px;
}
div.top-logo .top_logo_search input {
border-radius: 50px;
}
div.top-logo .login {
float: right;
margin-top: 8px;
}
div.top-logo .top_logo_search i {
position: absolute;
right: 10px;
top: 11px;
cursor: pointer;
}
/*end*/
.top-logo h1 {
display: inline-block;
padding: 21px 0;
}
.top-logo ul {
list-style: none;
float: right;
clear: right;
margin-top: 33px;
float: left;
}
/*------------------首页 end------------*/
.top-logo ul li {
float: left;
display: inline-block;
padding: 0 8px;
}
......@@ -55,16 +87,25 @@ div.top-logo {
border-right: 1px solid grey;
}
div.nav {
width: 100%;
background: #006cff;
div.navigation {
text-align: center;
}
.navigation .layui-nav-item {
width: 100px;
position: relative;
margin: 0 22px;
}
.layui-bg-blue {
background-color: #006CFF!important;
}
div.nav ul {
list-style: none;
width: 1200px;
display: inline-block;
.layui-nav-item:not(:first-child)::before {
content: '';
position: absolute;
height: 22px;
border-left: 1px solid #ccc;
top: 21px;
left: -20px;
}
div.nav ul li {
......@@ -72,6 +113,7 @@ div.nav ul li {
margin: 21px auto;
width: 149px;
border-left: 1px solid #3389ff;
cursor: pointer;
}
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
}
div.banner {
background: yellow;
height: 500px;
background-color: #7ed74e;
position: relative;
}
.banner .swiper_img {
width: 100%;
height: 100%;
}
div.banner ul {
.banner .banner_title {
position: absolute;
left: 0;
right: 0;
bottom: 50px;
margin: auto;
}
div.banner .banner_title {
list-style: none;
width: 1200px;
display: inline-block;
margin-top: 350px;
}
div.banner ul li {
div.banner .banner_title li {
width: 250px;
height: 100px;
background-color: #ffffff;
......@@ -123,7 +179,47 @@ div.banner ul li a {
cursor: pointer;
}
/* ---------------法律法规 start----------------------- */
.laws_regulations {
width: 1200px;
margin: 0 auto;
padding: 60px 0;
}
.laws_regulations .regulations, .policy {
border-radius: 2px;
width: 48%;
height: 370px;
border: 1px solid #DEDEDE;
}
.laws_regulations .policy{
float: right;
padding-right: 5px;
}
.laws_regulations .regulations{
float: left;
padding-left: 5px;
}
.laws_regulations .regulations h2 a{
display: block;
padding: 20px;
box-sizing: border-box;
border-bottom: 1px solid #E6E6E6;
}
.laws_regulations .regulations h2 a p{
font-weight: 600;
color: #4A4A4A;
line-height: 20px;
}
.laws_regulations .regulations h2 i{
font-style: normal;
float: right;
font-size: 14px;
color: #9B9B9B;
line-height: 14px;
}
/* ---------------end----------------------- */
div.c_one {
}
......@@ -267,7 +363,7 @@ div.c_two ul li {
overflow: hidden;
margin-left: 2.88%;
padding: 40px 36px;
border: 2px solid #e3e3e3;
border: 1px solid #E6E6E6;
}
div.c_two ul li:first-child {
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网上“一窗办事”登记系统</title>
<meta name="copyright" content=" &reg 技术支持 All Rights Reserved"/>
<meta name="robots" content="index,follow"/>
<meta name="googlebot" content="index,follow,archive"/>
<meta name="copyright" content=" &reg 技术支持 All Rights Reserved" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow,archive" />
<link rel="alternate icon" type="image/png" href="images/logo-realestate.png">
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content=""/>
<meta name="Keywords" content=""/>
<!-- <script type="text/javascript" src="/js/jquery.min.js"></script>-->
<link type="text/css" rel="stylesheet" href="./css/global.css"/>
<meta name="description" content="" />
<meta name="Keywords" content="" />
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
<link type="text/css" rel="stylesheet" href="./css/global.css" />
</head>
<body>
<div class="subject top-logo">
<h1><a href="index.html"><img src="images/logo.jpg" alt="西安市不动产登记平台"/></a></h1>
<ul>
<div class="subject top-logo">
<div class="top_logo_content">
<h1><a href="index.html"><img src="images/logo.jpg" alt="西安市不动产登记平台" /></a></h1>
<div class="top_logo_search">
<input type="text" name="title" required lay-verify="required" placeholder="请输入关键字搜索" autocomplete="off"
class="layui-input">
<i class="layui-icon layui-icon-search" style="font-size: 14px;"></i>
</div>
<ul class="login">
<li>登录</li>
<li>注册</li>
</ul>
</div>
<div class="nav">
<ul class="subject">
<li><a href="">首页</a></li>
<li><a href="">新闻动态</a></li>
<li><a href="">业务办理</a></li>
<li><a href="">政策法规</a></li>
<li><a href="">办事指南</a></li>
<li><a href="">查验中心</a></li>
<li><a href="">在线缴费</a></li>
<li><a href="">好差评</a></li>
</div>
</div>
<div class="navigation">
<ul class="layui-nav layui-bg-blue" lay-filter="">
<li class="layui-nav-item layui-this"><a href="">首页</a></li>
<li class="layui-nav-item"><a href="">新闻动态</a></li>
<li class="layui-nav-item"><a href="">业务办理</a></li>
<li class="layui-nav-item"><a href="">办事指南</a></li>
<li class="layui-nav-item">
<a href="javascript:;">查验中心</a>
<dl class="layui-nav-child">
<!-- 二级菜单 -->
<dd><a href="">移动模块</a></dd>
<dd><a href="">后台模版</a></dd>
<dd><a href="">电商平台</a></dd>
</dl>
</li>
<li class="layui-nav-item"><a href="">在线缴费</a></li>
<li class="layui-nav-item" class="item_last_child"><a href="">好差评</a></li>
</ul>
</div>
<div class="banner">
<ul class="subject">
</div>
<div class="banner">
<div class="layui-carousel" id="banner_swiper">
<div carousel-item>
<div class="swiper_item">
<img class="swiper_img" title="刘亦菲" src="./images/banner.jpg" />
</div>
<div class="swiper_item">
<img class="swiper_img" title="刘亦菲" src="./images/banner.jpg" />
</div>
</div>
</div>
<ul class="banner_title">
<li><a href="">查询档案</a></li>
<li><a href="">进度查询</a></li>
<li><a href="">在线预约</a></li>
<li><a>网上预审</a></li>
</ul>
</div>
<div class="c_one">
</div>
<div class="c_one">
<div class="subject">
<div class="news">
<h2><a href=""><span>新闻动态</span><i>查看全部 ></i></a></h2>
<a class="news-img" href="" title="图片新闻地信中心开展外业安全生产监控系统培训工作"><img src="images/news_demo.jpg"
alt="图片新闻地信中心开展外业安全生产监控系统培训工作"/></a>
alt="图片新闻地信中心开展外业安全生产监控系统培训工作" /></a>
<ul>
<li><a href="" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li>
<li><a href="" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li>
......@@ -68,39 +96,57 @@
</ul>
</div>
</div>
</div>
<div class="c_two">
</div>
<div class="c_two">
<div class="subject">
<h2><a href="">办事指南</a></h2>
<h2><a href="">便民服务</a></h2>
<ul>
<li>
<img src="images/two_s_1.jpg"/>
<img src="images/two_s_1.jpg" />
<h6>土地</h6>
<p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p>
</li>
<li>
<img src="images/two_s_1.jpg"/>
<img src="images/two_s_1.jpg" />
<h6>房屋建筑</h6>
<p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p>
</li>
<li>
<img src="images/two_s_1.jpg"/>
<img src="images/two_s_1.jpg" />
<h6>构筑物</h6>
<p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p>
</li>
<li>
<img src="images/two_s_1.jpg"/>
<img src="images/two_s_1.jpg" />
<h6>森林林木</h6>
<p>快速查看网站提供分全部数据地信中心开展外业安全生产监控系统培训工作</p>
</li>
</ul>
</div>
</div>
<div class="c_three">
</div>
<!-- 法律法规 -->
<div class="laws_regulations ">
<div class="regulations">
<h2>
<a href="">
<p>
<span>法律法规</span>
</p>
<i>查看全部 ></i>
</a>
</h2>
</div>
<div class="policy">
你的内容 3/12
</div>
</div>
<div class="c_three">
<div class="subject">
<a class="c_t_banner" href=""><img src="images/three_img.jpg"/></a>
<a class="c_t_banner" href=""><img src="images/three_img.jpg" /></a>
<dl>
<dt><h2>常见问题</h2></dt>
<dt>
<h2>常见问题</h2>
</dt>
<dd><a href="">基础问题</a></dd>
<dd><a href="">继承登记</a></dd>
<dd><a href="">一手商品房办证</a></dd>
......@@ -113,43 +159,66 @@
<dd><a href="">夫妻离婚变更</a></dd>
</dl>
<dl class="interact">
<dt><h2>政民互动</h2></dt>
<dt>
<h2>政民互动</h2>
</dt>
<dd>
<a>
<img src=""/>
<img src="" />
<p>在线评价</p>
</a>
</dd>
<dd>
<a>
<img src=""/>
<img src="" />
<p>在线留言</p>
</a>
</dd>
<dd>
<a>
<img src=""/>
<img src="" />
<p>征集调查</p>
</a>
</dd>
<dd>
<a>
<img src=""/>
<img src="" />
<p>即时聊天</p>
</a>
</dd>
</dl>
</div>
</div>
<div class="c_four">
</div>
<div class="c_four">
<div class="subject"> dfadfasdf</div>
</div>
<div class="c_five">
</div>
<div class="c_five">
<div class="subject"> dfadfasdf</div>
</div>
<div class="footer">
</div>
<div class="footer">
<div class="subject"> dfadfasdf</div>
</div>
</div>
</body>
</html>
<script src="https://www.layuicdn.com/layui/layui.js"></script>
<script>
layui.use('carousel', function () {
var carousel = layui.carousel;
//建造实例
carousel.render({
elem: '#banner_swiper'
, width: '100%' //设置容器宽度
, arrow: 'always' //始终显示箭头
, autoplay: true
, height: '500px'
});
});
//注意:导航 依赖 element 模块,否则无法进行功能性操作
layui.use('element', function () {
var element = layui.element;
//…
});
</script>
\ No newline at end of file
......
......@@ -28,6 +28,15 @@
<div>条目5</div>
</div>
</div>
<div class="layui-carousel" id="test1">
<div carousel-item>
<div>条目1</div>
<div>条目2</div>
<div>条目3</div>
<div>条目4</div>
<div>条目5</div>
</div>
</div>
<div id="test1"></div>
<button type="button" class="layui-btn">一个标准的按钮</button>
</div>
......@@ -63,4 +72,14 @@
, count: 50 //数据总数,从服务端得到
});
});
layui.use('carousel', function () {
var carousel = layui.carousel;
//建造实例
carousel.render({
elem: '#test1'
, width: '100%' //设置容器宽度
, arrow: 'always' //始终显示箭头
//,anim: 'updown' //切换动画方式
});
});
</script>
\ No newline at end of file
......