display:block 块转行
display:inlline行转块
display:inline-block转换为行内块
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<style>
a {
display:block;
width:230px;
height:40px;
font-size:14px;
background-color:slategray;
color:white;
text-decoration:none;
text-indent:2em;
}
a:hover{
background-color:aqua;
}
</style>
</head>
<body>
<a href="#">content</a>
<a href="#">content</a>
<a href="#">content</a>
<a href="#">content</a>
<a href="#">content</a>
<a href="#">content</a>
</body>
</html>
对应的图: