爲關閉到目前爲止,我這樣做編程方式使用VB.net/ASP.net:CSS股利寬度 - 內裏的div ...寬度似乎在IE7
<table cellspacing="0" cellpadding="4" border="0" style="border-
width:0px;width:100%;border-collapse:collapse;font-size:12px;">
<tr>
<td colspan="6"></td>
<td align="center" colspan="3" style="background-color:#F0D3D3;text-
decoration:underline;">SET</td>
<td colspan="2" style="background-color:#CFF5CE;"></td>
<td align="center" colspan="3" style="background-color:#BEE0F7;text-
decoration:underline;">REM</td>
</tr>
<tr>
<th style="width:70px;">M</th>
<th style="width:70px;">PG</th>
<th style="width:70px;">PV</th>
<th style="width:70px;">PDD</th>
<th style="width:40px;">R</th>
<th style="width:55px;">I #</th>
<th style="background-color:#F0D3D3;width:70px;">P A</th>
<th style="background-color:#F0D3D3;width:70px;">U D</th>
<th style="background-color:#F0D3D3;width:70px;">B P</th>
<th style="background-color:#CFF5CE;width:70px;">P U</th>
<th style="background-color:#CFF5CE;width:70px;">D E</th>
<th style="background-color:#BEE0F7;width:70px;">P</th>
<th style="background-color:#BEE0F7;width:70px;">U D</th>
<th style="background-color:#BEE0F7;width:70px;">B P</th>
</tr>
</table>
<div style="width:100%;clear:both;text-align:left;margin:0;">
<div style="width:375px;float:left;margin:0;display:block;">
<img onclick="change(this.parent);" src="minus99.jpg" style="border-width:0px;" />
<span style="font-weight:bold;font-size:16px;">Test Company</span>
</div>
<div style="background-
color:#F0D3D3;width:210px;float:left;margin:0;display:block;"></div>
<div style="background-
color:#CFF5CE;width:140px;float:left;margin:0;display:block;"></div>
<div style="background-
color:#BEE0F7;width:210px;float:right;padding:0;margin:0;display:block;"></div>
</div>
這應該給我四張DIVS在一個容器DIV內。下面是它的現身爲:
alt text http://i44.tinypic.com/2i7wxg9.jpg
非內嵌塊以上的正確塊是從具有完全相同的寬度,因爲我使用了div的那些表。沒有任何CSS爲它們添加像素,我不這麼認爲。我需要排列這些,我不知道我的問題在哪裏。任何幫助,將不勝感激。
相反張貼VB代碼,你可以張貼HTML/CSS這是產生的?這樣,我們非VB的人可以在這個問題上採取一些措施。 – Will 2010-03-22 18:53:14
有雅去...現在應該在HTML中 – jlrolin 2010-03-22 19:01:33