在div中给出边框标题 [英] Give border title in div
本文介绍了在div中给出边框标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在HTML中这样做:
我要在我的 div $ c $上添加边框标题c>。是否可以?如何操作?
注意:
图片
< div id = formstyle =width:350px;>
< fieldset>
< legend style =color:blue; font-weight:bold;>一般信息< / legend>
< table>
< tr>
< td>< span style =text-decoration:underline> C< / span> hange Password To:< / td&
< td>< input type =text/>< / td>
< / tr>
< tr>
< td>< span style =text-decoration:underline> C< / span> onfirm密码:< / td&
< td>< input type =text/>< / td>
< / tr>
< / table>
< / fieldset>
< / div>
Can I do like this in HTML:
I want to add border title ("General Information" in this image) on my div
. Is it possible? How to do it?
Note:
The image is not HTML page's image, its a Java app's image.
解决方案
<div id="form" style="width:350px;">
<fieldset>
<legend style="color:blue;font-weight:bold;">General Information</legend>
<table>
<tr>
<td><span style="text-decoration:underline">C</span>hange Password To:</td>
<td><input type="text"/></td>
</tr>
<tr>
<td><span style="text-decoration:underline">C</span>onfirm Password:</td>
<td><input type="text"/></td>
</tr>
</table>
</fieldset>
</div>
这篇关于在div中给出边框标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文