案例一:两个列表(如果是多个列表,其实原理是一样的)
css.qie_huan_doub1 li{float: left; margin:0 60px; background-color: #fe7100;color: #000;}.qie_huan_doub1 li a{}.qie_huan_doub1 li a.yanse{background-color: #fe7100; color: #fff;}.qie_huan_content1{ width: 400px;}.qie_huan_content1 .se1{width: 400px;text-align: center;}.qie_huan_content1 .se1 img{width: 100px; height: 100px;}.qie_huan_content1 .se2{text-align: center;}.yin_xian{display: none;}
html
js
//本文来源于网络,本人总结起来并优化,分享给有需要的前端朋友,如有侵权,请联系删除,也请指正、批评