表格标题不显示当它是RUNAT =服务器 [英] Table caption does not show when it is runat=server
问题描述
我有一个标题的简单的HTML表,并THW标题showed.I一个 =服务器
属性添加到它,现在标题并未出现。我怎样才能显示标题为表,它是 =服务器
。
感谢
修改1)
<表格的cellpadding =4CELLSPACING =0ID =tbl_9_10=服务器的ClientIDMode =静态>
<标题>
对于六岁< /字幕>
从<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmltable%28v=vs.100%29.aspx\"相对=nofollow> MSDN ,不支持复杂的表格模型,你不能有嵌套的标题,COL,COLGROUP,TBODY,THEAD,TFOOT或元素的HTMLTABLE控制。
相反,你可以使用asp.net表
&LT; ASP:表标题=六年老=服务器&GT;&LT; / ASP:表&gt;
I have a simple HTML table with a caption for it and thw caption showed.I add a runat="server"
attribute to it and now the caption did not show. How I can show caption for table that is runat="server"
.
thanks
Edit 1)
<table cellpadding="4" cellspacing="0" id="tbl_9_10" runat="server" clientidmode="Static" >
<caption>
For Six years old </caption>
From MSDN "A complex table model is not supported. You cannot have an HtmlTable control with nested caption, col, colgroup, tbody, thead, or tfoot elements."
Instead you can use asp.net table
<asp:Table Caption="For Six years old" runat="server">
</asp:Table>
这篇关于表格标题不显示当它是RUNAT =服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!