不定宽块元素的水平居中
<html>
<head>
<meta charset="utf-8">
<title>不定宽块状元素水平居中</title>
<style>
.divline{background:pink;text-align:center; display:inline;}
</style>
</head>
<body>
<div class="divline">
把不定块元素-变成了行内元素
</div>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>不定宽块状元素水平居中</title>
<style>
.divline{background:pink;text-align:center; display:inline;}
</style>
</head>
<body>
<div class="divline">
把不定块元素-变成了行内元素
</div>
</body>
</html>
2016-03-31
举报