Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (42 sloc) 1.271 kb
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href=./style.css>
</head>
<body>
<p>doitian 1楼, 2天前 喜欢
block 没设定宽度是不能 margin auto 来居中的,一个简单的办法是 display: table</p>
<p>PS:</p>
<p>display: table
width: auto
margin-left: auto
margin-right: auto</p>
<p>panywhang 2楼, 2天前 喜欢
<center></center></p>
<p>QueXuQ 3楼, 2天前 喜欢 </p>
<h1>2楼 @panywhang 二楼什么状况??</h1>
<h1>1楼 @doitian 哦。是在span12里面的div设置为display: table吗?</h1>
<p>QueXuQ 4楼, 2天前 喜欢
哥们,本贴出现bug了。@Rei @huacnlee</p>
<p>serco 5楼, 2天前 喜欢 </p>
<h1>4楼 m@QueXuQ 我来测试下新功能 原来真是bug。。。</h1>
<p>doitian 6楼, 1天前 喜欢 </p>
<h1>3楼 @QueXuQ 可以加个 class</h1>
<p>.center {
width: auto;
display: table;
margin-left: auto;
margin-right: auto;
}
.text-center {
text-align: center;
}</p>
<div class="center">
pla pla pla
</div>
<p>chucai 7楼, 1天前 喜欢
这里有一个居中的实列
<a href="http://twitter.github.com/bootstrap/examples/marketing-narrow.html">http://twitter.github.com/bootstrap/examples/marketing-narrow.html</a></p>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.