html中的fieldset

 1 <!DOCTYPE HTML>
 2 <html>
 3 
 4 <body>
 5 
 6 <fieldset>
 7 <legend>健康信息:</legend>
 8 <form>
 9 <p><label>身高:<input type="text" /></label></p>
10 <p><label>体重:<input type="text" /></label></p>
11 </form>
12 </fieldset>
13 
14 <p>如果表单周围没有边框,说明您的浏览器太老了。</p>
15 
16 </body>
17 </html>

Html 中的FileSet相当于WinForm中的GroupBox,legend相当GroupBox上方的提示文字。

运行效果


作者:kissazi2
出处:http://www.cnblogs.com/kissazi2/
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

原文地址:https://www.cnblogs.com/kissazi2/p/2843039.html