html嵌套php for循环,JS练习嵌套列表(for循环)_html/css_WEB-ITnose

CSS:

*{padding: 0;margin: 0;}ul,li{list-style: none;}.cont{ width: 600px; margin:30px auto;}.cont h3{ border-bottom: 2px solid #bbb; width: 100%; height: 38px;}#ul1{ position: relative; width: 100%;}#ul1>li{ float: left; margin-top: 15px; margin-left: 15px; position: relative;}.pro{ width: 180px; height: 200px; overflow: hidden;}.pro img{ width: 180px; height: 150px; overflow: hidden;}.pro p{ text-align: center;}.hidden{ display: none;}.active{ width: 300px; height: 120px; padding: 10px; overflow: hidden; position: absolute; top: -80px; left: 20px; display: block; background: #eee; border: 1px solid #ccc; z-index: 1;}.active li{ color: #e4007e; font-size: 14px; padding-left: 12px; height: 30px; line-height: 30px;}/* 清除浮动 */.clearfix{ zoom: 1;}.clearfix:after{ content: '.'; height: 0; display: block; clear: both; visibility: hidden;}

HTML:

最近更新 small.jpg

开心一刻

动漫类 开不厌“坐不凡” 宝马全新730Li试驾快评

3D打印无法替代 汽车设计师如何玩泥巴?

比亚迪元换装个性LOGO 瞬间高大上了许多

small-02.jpg

盆景养成记

植物类 开不厌“坐不凡” 宝马全新730Li试驾快评

3D打印无法替代 汽车设计师如何玩泥巴?

比亚迪元换装个性LOGO 瞬间高大上了许多

small-03.jpg

盆景养成记

植物类 开不厌“坐不凡” 宝马全新730Li试驾快评

3D打印无法替代 汽车设计师如何玩泥巴?

比亚迪元换装个性LOGO 瞬间高大上了许多

small-04.jpg

插花艺术

艺术类 开不厌“坐不凡” 宝马全新730Li试驾快评

3D打印无法替代 汽车设计师如何玩泥巴?

比亚迪元换装个性LOGO 瞬间高大上了许多

small-05.jpg

插花艺术

艺术类 开不厌“坐不凡” 宝马全新730Li试驾快评

3D打印无法替代 汽车设计师如何玩泥巴?

比亚迪元换装个性LOGO 瞬间高大上了许多

small-06.jpg

开心一刻

动漫类 开不厌“坐不凡” 宝马全新730Li试驾快评

3D打印无法替代 汽车设计师如何玩泥巴?

比亚迪元换装个性LOGO 瞬间高大上了许多

JS:

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值