我不太確定如何解釋這一點,因爲我仍然對編碼不熟悉,但我正在嘗試爲HEX創建配置文件佈局,並且我一直保持此狀態問題上來就每一個我做:溢出文本框在頁面底部添加了空白
我注意到,當我編輯滾動框,白色的空間相應地改變其大小。滾動框越大,空間越大,反之亦然。下面的代碼到我的最後一個輪廓:
body {
background-image: url(http://i.imgur.com/X3qmTN2.png);
background-repeat: no-repeat;
background-attachment: scroll;
height: 100px;
padding-bottom: 0;
font-family: Arial, sans-serif;
color: #e80812;
text-alignment: justify;
}
#nav {
width: 400px;
line-height: 80px;
padding-top: 670px;
}
#nav a:link, #nav a:visited, #nav a:active {
display: block;
font: 14px "arial";
text-transform: uppercase;
text-decoration: none;
text-align: center;
letter-spacing: 2px;
color: #ab4860;
padding: 7px;
-webkit-transition: all .5s ease-out;
-moz-transition: all .5s ease-out;
-o-transition: all .5s ease-out;
-ms-transition: all .5s ease-out;
transition: all .5s ease-out;
}
#nav a:hover {
letter-spacing: 5px;
color: #74194e;
padding: 7px 2px;
}
.hex {
position: relative;
top: 600px;
left: 100px;
background-color: transparent;
text-align: center;
}
.owl {
position: relative;
top: 800px;
left: 100px;
background-color: transparent;
text-align: center;
}
.club {
position: relative;
top: 1000px;
left: 100px;
background-color: transparent;
text-align: center;
}
b { color: #ab4860; }
u { color: #ab4860; }
i { color: #ab4860; }
<div id="nav">
<div class="hex"><a href="http://www.hexrpg.com/my.php">Back to HEX</a></div><br>
<div class="owl"><a href="http://www.hexrpg.com/owlpost.php?action=compose">Owl Me</a></div><br>
<div class="club"><a href="http://www.hexrpg.com/f/16063">Club Rainbow Brigade</a></div><br>
</div>
<div align="left">
<div style="overflow:auto;position:relative;width:700px;height:720px;top:-350px;left:390px;margin-right:-546px;margin-bottom:-300px;">
Text here. <b>Bold.</b> <u>Underlined.</u> <i>Italic.</i></div>
</body>
有什麼我需要補充,或者在我的代碼刪除?我在哪裏搞亂了,我看不到它?
那麼問題是什麼? –
我的問題是在那裏:我需要添加一些東西,刪除一些東西嗎?還是我做了一件錯事,把它搞砸了? –
我編輯了代碼段,因爲發生了一場災難,它不起作用。 –