我在空間中出現換行符。我不知道爲什麼它正在發生CSS未對齊Div內的文本
請檢查下面的代碼
<div id="postcode_phone">
<div id="sub_area_text1">02036MMM4</div>
<div id="sub_area_textgmt">GMT +1</div>
<div id="sub_area_texttime">Mon-Fri 8:00am - 5:00pm<br>Sat: 8:00am - 1:00pm </div>
</div>
CSS
#postcode_phone{
position:relative;
background:url(images/phonebanner.png) no-repeat;
width:222px;
height:81px;
}
#sub_area_text1 {
font-size:1.2em;
font-family: 'Corbol';
color:#31ACFF;
text-align:center;
padding-top:10px;
padding-left:30px;
}
#sub_area_textgmt {
font-size:0.8em;
font-family: 'Corbol';
color:#999999;
text-align:right;
padding-top:10px;
padding-right:60px;
width:10px;
border:5px solid gray;
margin:0px;
float:left;
}
#sub_area_texttime {
font-size:0.8em;
font-family: 'Corbol';
color:#999999;
text-align:center;
padding-right:90px;
width:40px;
border:5px solid gray;
margin:0px;
float:right;
overflow: hidden;
}
哪裏是換行符?在日期/時間信息? – jmore009
想知道:寬度限制的任何理由加上'#sub_area_texttime'和'#sub_area_textgmt' divs上的大量填充? – godfrzero
http://jsfiddle.net/d5Z6V/34/ – Franck