<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>内联块状元素</title>
<style type="text/css">
a{
display:inline-block;
width: 14px;
height: 34px;
background-color: red;
text-align: center;
}
</style>
<a>中国</a>
<a>日本傻蛋</a>
<a>美国笨</a>
</body>
</html>为什么不是横着排列的?
因为你用了block
日本傻蛋,美国笨,还行
为什么中文就是竖排,数字与字母却是横排?