Fieldset标签在我的asp.net网站上不起作用?

时间:2012-12-18 09:35:28

标签: asp.net html fieldset groupbox

我在我的asp.net网站上有一个字段集,可以使组合框看起来很相似......但它不会出现。 这就是我在做的事情:

<fieldset id="fl1" runat="server">
     <legend>My Group</legend>
</fieldset>

screen shot of the page where its not working

只有My Group即将到来边界未来......我也使用了panel但同样的问题......

我在此页面中使用ajax toolkitupdate panel ...

我该怎么办?

3 个答案:

答案 0 :(得分:2)

字段集是可见的,它只是边框。因此,您可能会有一个删除边框的样式表。

编辑样式表,使其不会首先删除边框,或者显式添加一个。

答案 1 :(得分:1)

你在字段集中没有任何内容,所以它不能在任何地方放置边框。

<fieldset id="fl1" runat="server">
    <legend>My Group</legend>
    <!-- Put anything you want to be in the fieldset here. -->
</fieldset>

答案 2 :(得分:0)

Asp.net核心页面似乎不支持所有类型的fieldset元素。 它支持但现在在浏览器中可见。

您可以使用像这样的字段集,因为支持固体参考。

    <fieldset style="border:0.5px solid">

= >>代码在这里