*{
margin:0;
padding:0;
list-style-type:none;/*手动清楚空隙*/
font-size:12px;
font-family:"微软雅黑"
}
.searchbox {
width:520px;
height:80px;
margin:40px auto 0 auto;
border:1px solid red;
}
.searchbox ul{
width:500px;
/*float:left;*/
height:35px;
/*标签间隙*/
}
.searchbox ul li{
float:left;
}
.searchbox ul li a {
text-decoration:none;/*下划线*/
color:#000000;
font-size:14px;
font-weight:bold;
line-height:35px;
padding:10px 25px;/*上下 左右间隙*/ /*内容*/
}
.searchbox ul li.style1{
background:#000;
color:#fff;
}
.searchbox ul li.style2{
background:#ff0000;
color:#fff;
}
.searchbox ul li.style3{
background:#ff9900;
color:#fff;
}

.bodys{
width:700px;
height:200px;
margin-left:220px;
}
.bodys input{
width:390px;
height:30px;
line-height:30px;
padding:0 10px;
float:left;
}

.bodys.one{
border:3px #000 solid;
}
.bodys.two{
border:3px #ff0000 solid;
}
.bodys.three{
border:3px #ff9900 solid;
}
.bodys.one1{
background:#000000;
}
.bodys.two2{
background:#ff0000;
}
.bodys.three3{
background:#ff9900;
}
.bodys button{
float:left;
border:0;
height:36px;
width:100px;
color:#000000;
line-height:36px;
text-align:center;/*shupingjuzhong */
overflow:hidden;/*鼠标移除*/
}

HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>淘宝选项卡</title>
<link href="style/table.css" rel="stylesheet" />
<link href="style/table.css" rel="stylesheet" />
<meta charset="utf-8" />
</head>

<body>
<div class="searchbox">
<ul>
<li><a herf="#"class="style1">宝贝</a></li>
<li><a herf="#" ="style1">天猫</a></li>
<li><a herf="#" ="style1">店铺</a></li>
</ul>
</div>
<div>
<div class="bodys">
<p><input type="text"value=""id=""class="one"placeholder="输入宝贝"/>
<button class="one1">搜索</button>
</p>
<p>
<input type="text" value="" id="" class="two" placeholder="输入宝贝" />
<button class="two">搜索</button>
</p>
<p>
<input type="text" value="" id="" class="three" placeholder="输入店铺" />
<button class="three">搜索</button>
</p>
</div>
</body>
</html>

最新文章

  1. Ajax代码简单封装。
  2. scrapy2_初窥Scrapy
  3. ssh(安全外壳层)
  4. 【风马一族_Java】使用java,画出任意大小的菱形
  5. python库tkinter、pygame中几点需要注意的问题
  6. tomcat发布项目时,空文件夹未发布成功
  7. Redux1
  8. [转] doxygen使用总结
  9. javaWeb中一个按钮提交两个表单
  10. 学习 Netty 3.x
  11. LeetCode——Symmetric Tree
  12. 部署statspack工具(二)之解决方案1
  13. [CSS3] 学习笔记-CSS3选择器详解(一)
  14. 使用Python开发chrome插件
  15. SQLAlchemy 嵌套事务的解决方案
  16. js中属性点.和中括号[]的关系。
  17. 微软Power BI 每月功能更新系列——11月Power BI 新功能学习
  18. 算法训练 P1102
  19. leetcode942
  20. drupal CVE-2018-7600 复现

热门文章

  1. Android studio 模拟器中输入中文
  2. iOS sort array 数组排序里面的对象
  3. openerp 6.0.2库存业务
  4. onWindowFocusChanged重要作用(得到/失去焦点call) 、
  5. 一个简单的python爬虫(转)
  6. 解决——CSS :before、:after ,当content使用中文时有时候会出现乱码
  7. java基础讲解01-----简单了解一下java
  8. Vmware虚拟机三种网络模式详解(转)
  9. [emqttd] (EMQ)
  10. php 获取客户端的浏览器信息