html列表效果,html+css 实现简单的列表

实现效果

1292492921068658688.htm

结构

9d2b6790221a0b8729d79b95f4add33b.png

128.00

btn_shoucang.png

0

苏州石公山、明月湾、古樟园一日自驾游

南京-->苏州

出发时间:

2017-12-02

1

踏青旅游

古镇园林

亲子活动

已售:3

样式

*{

margin: 0;

padding: 0;

}

body,html{

background-color: #eee;

}

ul,li{

list-style: none; /*列表样式:无。*/

list-style-type: none;/*列表无标记*/

}

a,a:active,a:focus,a:hover{

text-decoration: none; /* 文本修饰:无 */

color: inherit;/*inherit 关键字指定一个属性应从父元素继承它的值。*/

}

input{/*内边距和边距不再会增加它的宽度*/

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

}

/*重置表格元素*/

table{

border-collapse: collapse;

border-spacing: 0;

}

/*线路列表*/

.list{

width: 100%;

}

.list-item{

width: 100%;

height: 300px;

background-color: white;

}

.img_box{

width: 100%;

height: 200px;

position: relative;

}

.lazy{

width: 100%;

height: 200px;

}

.prices::before{

content: "¥";

}

.prices{

position: absolute;

bottom: 16px;

left: 16px;

color: white;

font-size: 18px;

background-color: rgba(0,0,0,0.2);

}

.prices::after{

content: "起";

}

.dot{

position: absolute;

bottom: 16px;

right: 16px;

color: white;

background-color: rgba(0,0,0,0.2);

}

.icon{

height: 30px;

vertical-align: middle;

position: relative;

bottom: 2px;

left: 5px;

}

.info{

width: 100%;

padding: 10px 0 0 6px;

}

.info>h3{

font-size: 16px;

font-weight: 500;

}

.detail{

margin: 10px 0;

font-size: 14px;

color: #999;

}

.tag-items{

display: inline-block;

height: 20px;

line-height: 20px;

padding: 2px 10px;

color: #CCB68A;

background-color: #F3EEE0;

border-radius: 10px;

font-size: 14px;

}

.volume_temp{

float: right;

margin-right: 10px;

color: #999;

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值