table 的caption 运行时不能显示

fujihua2001 2009-09-09 10:09:57
#browser
{
width:800px;
margin:0px auto;
border-collapse:collapse;
font-family:Arial;
text-align:center;
}
#browser th, td
{
text-align:center ;
}
#browser thead th
{
background-color:#6699cc;
text-align:center;
height:25px;
}
#browser tbody td
{
background-color:#fff;
text-align:center;
height:25px;
}
#browser th
{
background-color:#fff;
}
#browser th.title
{
background-color:#6699cc;
}
#browser caption
{
font-weight:bold;
padding:6px 0px;
color:#3d580b;
font-size:15px;
background-color:#6699cc;


}


<table id="browser" runat="server" >
<caption >员工信息表</caption>
<%--<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th>部门编号</th>
<th>部门名称</th>
<th>业务</th>
<th>描述</th>
</tr>
</thead>--%>
<tbody>
<tr>
<th >姓名</th>
<td>
</td>
<td rowspan="3" >照片
</td>
<td rowspan="3" >照片暂没上传
</td>
</tr>
<tr>
<th>性别</th>
<td>
</td>
</tr>
<tr>
<th>年龄</th>
<td>
</td>
</tr>
<tr>
<th style="width:15%">联系电话</th>
<td style="width:35%">
</td>
<td style="width:15%">电子邮箱
</td>
<td style="width:35%">
</td>
</tr>
<tr>
<th>地址</th>
<td>
</td>
<td>身份证号
</td>
<td>
</td>
</tr>
<tr>
<th>工号</th>
<td>
</td>
<td>QQ
</td>
<td>
</td>
</tr>
<tr>
<th>职业</th>
<td>
</td>
<td>毕业学校
</td>
<td>
</td>
</tr>
</tbody>



</table>


问题如题,编辑时有员工信息的表头,运行时就没有了,是为什么?请大家支招
...全文
257 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangyunfei 2012-07-20
  • 打赏
  • 举报
回复
<table id="browser" >把 runat="server"去掉就可以
fujihua2001 2009-09-11
  • 打赏
  • 举报
回复
难道没有人遇到过类似问题?
街头小贩 2009-09-10
  • 打赏
  • 举报
回复
<caption >员工信息表 </caption>
re:
这叫表头么?把这段CSS注释掉试试:padding:6px 0px;
fujihua2001 2009-09-10
  • 打赏
  • 举报
回复
把<caption>高度设置成200都没用
fujihua2001 2009-09-10
  • 打赏
  • 举报
回复
不行啊,

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧