07 淘宝侧边栏案例实战

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>侧边栏展示</title>
		<style type="text/css">
			a {
				color:white;
				background-color: #1183f3;
				text-decoration: none;
				height: 48px;
				width: 140px;
				display: block;
				/* 首行缩进2em */
				text-indent: 2em;
			}
			/* 悬停显示橘黄色 */
			a:hover {background-color: orange;}
		</style>
	</head>
	<body>
		<a href="">聚划算热卖图</a>
		<a href="">聚划算特惠图</a>
		<a href="">夏装爆款热卖</a>
		<a href="">特惠49元起</a>
		<a href="">连衣裙</a>
		<a href="">T恤</a>
		<a href="">衬衫</a>
		<a href="">裤装</a>
	</body>
</html>

展示效果

   

注:如果实现垂直居中则在style里面加上 line-height=height; 即可,即line-height:48px;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值