【发布时间】:2013-05-24 19:45:43
【问题描述】:
我在显示以编程方式显示列的表格时遇到问题。
以下是可以看到此问题的 html 代码(并已确认其不是影响渲染的代码)。
<table>
<tr>
<th>NUMER</th>
<th>NAME</th>
<th align="center" style="display:block;">LOCATION</th>
<th align="center" style="display:none;">1</th>
<th align="center" style="display:block;">2</th>
</tr>
<tr>
<td>12345</td>
<td>BOB Jr</td>
<td align="center" style="display:block;"><input type="CheckBox" ID="updateLocation" runat="server" /></td>
<td align="center" style="display:none;"><input type="CheckBox" ID="updateLocation" runat="server" /></td>
<td align="center" style="display:block;"><input type="CheckBox" ID="updateLocation" runat="server" /></td>
</tr>
这将在 Chrome 和 Firefox 上显示如下:
样式是以编程方式添加的,这显然是导致问题的原因,但是我想知道是否有人有解决此问题的建议?
表格列必须以编程方式显示,因为此功能是用户驱动的。
另请注意,这在 IE 上运行良好。
【问题讨论】:
-
不确定是什么吸引了反对票,对我来说似乎是一个非常好的问题?
标签: c# javascript asp.net css firefox