一起逛街,一起旅行,一起上綜藝,你以為他們是小情侶
[CSS]讓div內的物件垂直、水平居中|梅問題‧教學網【Minwt】 下面這個情景,不知道大家熟不熟悉 圖中的狗狗和猩猩,是一對很萌的好基友 黑猩猩名叫Pan-kun是個男寶 出生於2001年10月1日 這只鬥牛犬名叫James也是個男寶 出生於2003年12月19日 CSS語法: div { width:300px; height:300px; border:1px solid #c00; position:relative; /*to IE*/ display:table-cell; text-align:center; vertical-align:middle; /*to firefox*/} div p { position:static !important; position:absolute; top:50%; /*讓IE上空出50%*/...
全文閱讀