span標(biāo)簽樣式怎么定義
?*{margin:0;padding:0;}
? ? ?#div1{
? ? ? width: 200px;
? ? ? height: 100px;
? ? ? position:absolute;
? ? ? left:-200px;
? ? ? background: #f00;
? ? ?}
? ? ?#div1 span{?
? ? ? ? ? width: 35px;
? ? ? ? ? height: 50px;?
? ? ? ? ? display: block;
? ? ? ? ? text-align: center; ? ? ?
? ? ? ? ? position: relative;
? ? ? ? ? left: 200px;
? ? ? ? ? top: 25px;
? ? ? background: #00f;
? ? ?}
文字沒有豎直排放,請(qǐng)問代碼問題出在哪?
2015-12-15
span標(biāo)簽是默認(rèn)內(nèi)聯(lián)的