close

:::CSSの知識をもっと深める30+2の小技テクニック集:::

實用節錄萬歲  


1.DIV垂直置中

<div class="box">
         <img>我是圖片啦,可以置中了說!!
</div>
div.box{displaytable-cell;}

2.並排的H4和P

sample:
本日記事(2011.4.1)

<div>
  <h4>本日記事</h4>
  <p>(2011.4.1)</p>
</div>
div h4, div p {display: inline;}

 

 

arrow
arrow
    全站熱搜

    阿摸摸 發表在 痞客邦 留言(0) 人氣()