[20分] css 問題, 高手請答

2008-03-01 3:23 am
先睇下依段code:

<html>
<head>
</head>
<body>

<div style="display:inline;">
<a href="">Link1</a><br/>
<a href="">Link2</a><br/>
<a href="">Link3</a><br/>
<a href="">Link4</a>
</div>
<div style="display:inline;">
<a href="">Link5</a><br/>
<a href="">Link6</a><br/>
<a href="">Link7</a><br/>
</div>

</body>
</html>

無論響ie7(Trident engine)或者firefox(Gecko engine)都好, render出黎個款係甘樣o既:
http://aycu22.webshots.com/image/45661/2006110676532414176_rs.jpg

甘我而家就係想將link5,6,7 一齊擺響link1,2,3,4 o既右手邊,好似甘:

link1 link5
link2 link6
link3 link7
link4

但係我唔想用table,
亦唔想用css positioning,
而link1-4一定要響同一個div,
link5-6另一個div,
仲有唔好用nested div

邊個知道就邊個答la

回答 (1)

2008-03-05 4:12 am
✔ 最佳答案
這樣可以嗎?
<html>
<head>
</head>
<body>

<div style=”display:inline; float:left”>
<a href=””>Link1</a><br/>
<a href=””>Link2</a><br/>
<a href=””>Link3</a><br/>
<a href=””>Link4</a>
</div>
<div style=”display:inline; float:left”>
<a href=””>Link5</a><br/>
<a href=””>Link6</a><br/>
</div><a href=””>
Link7</a><br/>


</body>
</html>


收錄日期: 2021-04-23 00:17:46
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080229000051KK02190

檢視 Wayback Machine 備份