3
的div我有這個網站:定心體內
<body>
<div id="maindiv" class="rounded">
something written
</div>
</body>
這個CSS:
body {
background-image: url('stjohnhusimages/green gradient.png');
background-repeat: no-repeat;
width:1024px;
height:1375px;
background-size: cover;
text-align:center;
}
#maindiv {
width:900px;
height:1275px;
margin-left: auto;
margin-right: auto;
margin-top: 40px;
background-color:#404853;
}
但主要的div還是會被左對齊。想知道我做錯了什麼。
感謝您的幫助!
它看起來並不像它,http://jsfiddle.net/tqT6W/你能後的截圖或者活生生的例子? – Brandon
是啊,它也似乎並沒有左對我http://codepen.io/anon/pen/qLIKt –
是否有'圓形'類的任何CSS? – paul