好吧,另一個與此有關的快速問題。我接受了這個建議,並且效果很好,現在我的困境是桌子之間有空間。試圖讓文本在同一行上
我打算附上一個文件,但我想我還沒有太多的代表。
無論如何,如果你可以去http://www.wholesalecabinets.us/Wall-Cabinets_c_524.html,你會明白我的意思。看看這條線是如何靠近桌子的頂部的,並且在線條再次開始之前還有空間?
我知道,我知道...對你們來說很容易。
對不起,我是一個新手,我沒有太多的HTML體驗,但我需要一些問題的幫助。
目前我有一個網站,有一堆的產品。除了一個問題,我設法讓產品列表與我想要的非常接近,我希望價格與[姓名]在同一行,但是在最右邊。目前它是在最右邊的描述之下。
任何幫助,非常感謝。
感謝, 凱文
<table border="0" cellspacing="0" cellpadding="2" width="95%">
<tr>
<td rowspan="2" align="left" valign="top" class="item" style="width:75px;"><a href="product.asp?itemid=[catalogid]&catid=[catid]"><img src="thumbnail.asp?file=[THUMBNAIL]&maxx=50&maxy=50" alt="[name]" border="0" /></a></td>
<td class="item" align="left" valign="middle"><a href="product.asp?itemid=[catalogid]&catid=[catid]"><span class="item">[name]</span></a><br>
<span class="item">[description]</span></td>
</tr>
<tr>
<td class="item" align="right" valign="top"><span class="price">[ITEMPRICE]</span> [product_quantity]
<input type="hidden" name="item_id" value="[catalogid]" />
<input type="text" size="2" name="qty-[counter]" value="0" /></td>
</tr>
<img src="assets/templates/[template]/images/div.png" alt="template" vspace="2" width="95%" height="1" />
</table>
我建議你看看CSS,這會讓你在正確的道路上 – elclanrs 2012-04-11 22:22:25
那麼你是在正確的地方提出問題!歡迎來到Stackoverflow! – 2012-04-11 22:26:39