home.html 2.37 KB
{template 'common/header'}
{template 'common/slide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#ECECEC{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:100%;}
	.box .box-item{float:left; display:block; width:16.25%; margin-right:0.5%; height:90px; line-height:90px; overflow:hidden; text-align:center;  background-color:#5fc7d5; color:#fff; margin-bottom:5px; text-decoration:none;}
	.box .box-item:nth-child(6){margin-right:0;}
	.box .box-item i{display:block; height:63px; width:100%; line-height:63px; font-size:35px; text-align:center; margin-bottom:3px;}
	.box .box-item span.img{display:block; height:63px; line-height:63px; text-align:center;  margin-bottom:3px;}
	.box .box-item img{width:100%; max-height:63px; margin:auto 0;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; display:block; height:20px; line-height:20px; text-align:center; width:90%; margin:0 5%; overflow:hidden;}
	.img-box{width:100%;}
	.img-box>a{display:block; float:left; text-decoration:none; text-align:center; width:47%; height:95px; margin:2% 0 2% 2%; padding-bottom:5px; background-color:#ffffff; border:#e0e0e0 solid 1px; border-radius:3px; box-shadow:1px 1px 1px rgba(0,0,0,0.06);}
	.img-box>a .icon{display:block; height:70px; margin:0 auto; vertical-align:middle; -webkit-border-top-left-radius:3px; -webkit-border-top-right-radius:3px;}
	.img-box>a i{display:block; width:100%; height:50px; font-size:45px; text-align:center; line-height:50px; margin:10px auto; color:#737373;}
	.img-box>a span{color:{if empty($_W['styles']['fontnavcolor'])}#737373{else}{$_W['styles']['fontnavcolor']}{/if}; display:block; width:90%; height:25px; line-height:25px; margin-left:5%; font-weight:bold; overflow:hidden;}
</style>
<div class="box clearfix">
	{data func="site_navs" section="1" item="row"}
	{$row['html']}
	{php if($row['iteration'] > 6) break;}
	{/data}
</div>
<!--自定义图片-->
<div class="img-box clearfix">
	{data func="site_navs" section="2" item="row"}
	{$row['html']}
	{/data}
</div>
{template 'common/footer'}