<style>
*{
margin: ;
padding: ;
text-decoration: none;
list-style: none;
outline:none;
}
.box{
width: 600px;
overflow: hidden;
border:1px solid #eee;
margin: 50px auto;
}
.nav{
width: 600px;
}
.nav_list{
float:left;
width:33.333%;
box-sizing: border-box;
}
.nav_title{
display: block;
line-height: 40px;
text-align: center;
background: white;
cursor: pointer;
border-left: 1px solid #eee;
}
.nav_txt{
position:relative;
width: 600px;
background: white;
padding: 20px;
}
.m1{
margin-left: -%;
}
.m2{
margin-left: -%;
}
.nav_radio{
display: none;
}
.nav_radio:checked + .nav_title{
background: #f5f5f5;
}
.nav_radio:checked ~ .nav_txt{
z-index: ;
}
</style>
<body>
<div class="box">
<ul class="nav">
<li class="nav_list">
<input type="radio" checked="checked" name="nav" id="nan" class="nav_radio"/>
<label for="nan" class="nav_title">男士</label>
<p class="nav_txt">男士页面</p>
</li>
<li class="nav_list">
<input type="radio" name="nav" id="nv" class="nav_radio"/>
<label for="nv" class="nav_title">女士</label>
<p class="nav_txt m1">女士页面</p>
</li>
<li class="nav_list">
<input type="radio" name="nav" id="child" class="nav_radio"/>
<label for="child" class="nav_title">儿童</label>
<p class="nav_txt m2">儿童页面</p>
</li>
</ul>
</div>
</body>

大致思路是利用 radio和label ,

这种挺简单的.

最新文章

  1. Default Parameter Values in Python
  2. linux C学习笔记02--共享内存(进程同步)
  3. web客户端通过ajaxfileupload方式上传文件
  4. hibernate - Initial SessionFactory creation failed.org.hibernate.HibernateException
  5. Flex4 flash builder保留MXML转换的AS代码
  6. Hibernate注解之@Enumerated
  7. nginx利用反向代理调试后台接口
  8. SpringBoot之GZip压缩,HTTP/2,文件上传,缓存配置
  9. 关于Java____________Object类
  10. 在已有的Java项目中使用Kotlin
  11. 牛客寒假算法基础训练集中营4 E题 Applese 涂颜色
  12. ssm中整合Mybatis可以扫描到放在mapper下面的xml文件的方法
  13. 3.1 MathType上标位置调整的两种方法
  14. [转]语音识别中区分性训练(Discriminative Training)和最大似然估计(ML)的区别
  15. 关于js特效轮播图练习
  16. luogu P3304 [SDOI2013]直径
  17. 点击LinearLayout使用selector改变TextView字体颜色
  18. dbca时报错:ORA-12705(NLS_LANG=AMERICAN_AMERICA.UTF8);
  19. Node.js+Express on IIS(续)
  20. bzoj1086

热门文章

  1. 使用JavaEE的ServerAuthModule模块和web.xml进行相应配置,实现对用户的权限控制
  2. String类理解
  3. 最大流算法之EK(最短路径增广算法)
  4. duboo解析的入口
  5. tpcc-mysql安装
  6. JDK的下载与配置
  7. C语言模拟实现多态
  8. Android studio 3.0 引起的 outputFile sync failed:not vaild
  9. 简单RPC框架-基于Consul的服务注册与发现
  10. Longest Substring Without Repeating Characters2015年6月9日