<!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;