我有一个 MasterPage(在 .net 中)并且我正在申请:
#wrapper {
position: relative;
margin: 0 auto;
}
到:
<body>
<div id = "wrapper" >
here goes my content
</div>
</body>
但是没用.... 你能帮忙解决这件事吗,plz
最佳答案
你还必须指定 div 宽度...
关于.net - margin :0 auto; not working for the whole page,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10396089/