2019.12.04-首页布局实例代码

Posted lishuide

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2019.12.04-首页布局实例代码相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>布局实例</title>
</head>
<style type="text/css">
.menu{
list-style: none;
background-color: #55a8ea;
padding: 0;
width: 960px;
height: 40px;
margin: 50px auto 0;
position: relative;

}

.menu li{
float: left;
width: 100px;
height: 40px;
text-align: center;
line-height: 40px;
}

.menu li a{
font-size: 14px;
font-family: ‘Microsoft Yahei‘;
color: #fff;
text-decoration: none;
}

.menu li:hover{
background-color: #00619f;
}

.menu .active{
background-color: #00619f;
}

.menu .new{
width: 33px;
height: 20px;
background: url(images/new.png) no-repeat;
position: absolute;
left: 536px;
top: -8px;
}

.menu .new:hover{
background: url(images/new.png) no-repeat;
}

</style>
<body>
<ul class="menu">
<li class="active"><a href="">首页</a></li>
<li><a href="http://blog.sina.com.cn/sem5">网站建设</a></li>
<li><a href="http://www.0775yzf.com/">工商注册</a></li>
<li><a href="http://www.0775yzf.com/">代理记账</a></li>
<li><a href="http://blog.sina.com.cn/sem5">网络营销</a></li>
<li><a href="http://www.ylhdgg.com/">玉林恒大广告</a></li>
<li><a href="http://blog.sina.com.cn/sem5">李俊鹏</a></li>
<li><a href="http://www.ylhfjc.com/">玉林湖丰建材</a></li>
<li class="new"></li>
</ul>
</body>
</html>

技术图片

 

 

以上是关于2019.12.04-首页布局实例代码的主要内容,如果未能解决你的问题,请参考以下文章

微信小程序项目实例——今日美食

自己做的一个网页的布局实例

PHP.5-DIV+CSS布局网站首页实例

<div+css页面布局课堂笔记>11---页面布局网站首页设计实例__终极版(仿csdn首页)

JQuerymobile实例源代码

Dreamweaver网页作业——紫罗兰永恒花园动漫价绍网页 7页,含有table表格,js表单验证还有首页视频。以及列表页。浮动布局。div+css+js