返回 插入图片+ul...... 登陆

插入图片+ul-li导航+图片左浮动+图片右浮动

李准 2018-12-08 20:30:36 343

html代码

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>浮动案例</title>

<style>

* {

padding: 0px;

margin: 0px;

}

.logo {

width: 960px;

height: 100px;

background: red;

margin: 0 auto;

}

.header {

width: 960px;

height: 40px;

margin:0 auto;

}

ul {

display: inline-block;

width: 960px;

height: 40px;

margin:0 auto;

}

ul li {

list-style: none;

width: 96px; 

height: 40px;

background-color: #F8F8F8;

line-height: 40px;

text-align: center;

float: left;

}

ul li:hover {

background-color: black;

color: #fff;

}

.clear {

clear: both;

}

.dtu {

width: 960px;

height: 520px;

margin: 0 auto;

}

.dtu_left {

float: left;

}

.dut_right {

float: right;

}

</style>

</head>

<body>

<div>

<img src="1.png" alt="">

</div>

<div>

<ul>

<li>php</li>

<li>html</li>

<li>python</li>

<li>java</li>

<li>C语言</li>

<li>C++</li>

<li>语文</li>

<li>数学</li>

<li>地理</li>

<li>历史</li>

</ul>

</div>

<div></div>

<div>

<div>

<img src="2.png" alt="">

</div>

<div>

<img src="3.png" alt="">

</div>

</div>

</body>

</html>

以下是三张图片

1.png2.png3.png

最新手记推荐

• 用composer安装thinkphp框架的步骤 • 省市区接口说明 • 用thinkphp,后台新增栏目 • 管理员添加编辑删除 • 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送
  • PHP中文网