返回 css中的浮动... 登陆

css中的浮动

阿贵 2018-11-30 20:48:10 232

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title> css本单元课程小结 </title>

         <style type="text/css">

  ul li{list-style:none;width:150px;height:50px;line-height:40px;text-align:center;background-color:#ccc;margin:0px 1px;float:left;}

  .box1{width:150px;height:50px;background-color:#0000FF;float:left;line-height:40px;margin:0px 1px;text-align:center;}

  .clear{clear:both;}

  </style>

</head>

   <body>

   <ul>

   <li>菜单1</li>

   <li>菜单2</li>

   <li>菜单3</li>

   <li>菜单4</li>

   <li>菜单5</li>

   </ul>

   <div> </div>

   <div> div1 </div>

   <div> div1 </div>

   <div> div1 </div>

   </body>



</html>



最新手记推荐

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

全部回复(0)我要回复

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