我有一個div中有一個div和1個H1標籤的頁面;爲什麼我的保證金會在整個分部?
我給保證金爲H1和它給保證金的整個DIV
這是爲什麼?
http://craveadeal.com/indexV2.php
這裏是整個代碼:
<style type="text/css">
<!--
* {
margin: 0px;
padding: 0px;
}
#wrapper {
margin-right: auto;
margin-left: auto;
background-image: url(image-files/mockupV2.jpg);
background-repeat: no-repeat;
height: 555px;
width: 1040px;
background-position: center top;
}
#wrapper h1 {
text-align: center;
font-size: 72px;
font-family: "Comic Sans MS", cursive;
text-decoration: blink;
color: #F07D00;
background-color: #000;
margin-right: 125px;
margin-left: 125px;
display: block;
margin-top: 125px;
}
-->
</style>
</head>
<body>
<div id="wrapper"><h1>COMING SOON</h1>
</div>
</body>
當我查看頁面時,不會發生這種情況;什麼瀏覽器顯示該問題?你可以請張貼截圖嗎? – lnrbob 2010-09-07 17:29:43