我有一個小問題,有一個小高度出現的標題,我不知道如何去除它。CSS表頭單元格
HTML:
<div class="wrapper_header">
<div class="left_header"> </div>
<div class="central_header fondo_amarillo">
<div class="aleron_izquierdo"></div>
<div class="menu_option"><a href="#">Option 1</a></div>
<div class="menu_option"><a href="#">Option 2</a></div>
<div class="menu_option"><a href="#">Option 3</a></div>
<div class="menu_option"><a href="#">Option 4</a></div>
<div class="menu_option"><a href="#">Option 5</a></div>
</div>
<div class="right_header fondo_amarillo"> </div>
CSS:
.wrapper_header {
width:100%;
display:table;
}
.central_header {
width:500px;
display:table-cell;
}
.left_header {
display:table-cell;
}
.right_header { display:table-cell; }
.left_header {
background-image:url(http://www.alarconrotulos.es/img/amarillo_cabecera_izq.png);
background-repeat:repeat-x;
}
.aleron_izquierdo {
width:130px;
height:69px;
background-image:url(http://www.alarconrotulos.es/img/pestana_cabecera_peque_960.png);
position:relative;
left:-130px;
float:left;
}
.menu_option a {
font-size:18px;
height:69px;
vertical-align:bottom;
color:rgb(150,150,150);
float:right;
padding:0 5px;
display: block;
display: -webkit-box;
-webkit-box-align: end;
-webkit-box-pack: center;
display: -moz-box;
-moz-box-align: end;
-moz-box-pack: center;
display: box;
box-align: end;
box-pack: center;
}
.menu_option a:hover {
color:rgb(84,84,84);
}
.fondo_amarillo {
background-color:#FFFF58;
}
在這裏,你運行上面的代碼:http://jsfiddle.net/aL447/
當您運行的代碼,你將看到central_header塊有三個像素高於它應該是,我不能低估爲什麼。
任何想法?
謝謝。
沒有任何反應 – Apalabrados
它確實會重置您的整個CSS。所以它會把它頂部5-10px。你用我的全部CSS取代了你的嗎?在JSFiddle中嘗試一下。 –
這裏是我的小提琴:http://jsfiddle.net/chronel/qRLYk/ –