我遇到了CSS問題。我有一個little image帶有問題:在CSS和html中的位置問題
第一部分顯示在「Contenido」塊爲空時出現的情況,以及第二部分出現時出現的情況。問題?第二個botton使用休息並出現在其他bootom下。我曾嘗試過兩種款式,但我無法用一件工作。我在CSS和HTML中有什麼?
<div class="nav-pad">
<button id="previous_left" class="button_previous">
<img src="/images/left-arrow.png"/>
</button>
<div id=info_left>
Here we could put some info but it give a problem
</div>
<button id="next_left" class="button_next">
<img src="/images/right-arrow.png"/>
</button>
</div>
並在CSS我有這樣一條:
.nav-pad{
padding: 0.2em;
postion: relative;
}
.button_next{
float:right;
right:0
}
.button_previous{
left:0;
}
任何線索我在做什麼不好? 非常感謝! Roberto
與你的CSS,我不知道它是如何工作的罰款時,「Contenido」爲空。你有id = info_left的css規則來設置它的大小嗎? – 2011-04-08 05:01:12