fieldset 用法

体验地址:https://www.w3school.com.cn/tiy/t.asp?f=html_fieldset

<!DOCTYPE HTML>
<html>

<body>

<form>
  <fieldset>
    <legend>健康信息</legend>
    身高:<input type="text" />
    体重:<input type="text" />
  </fieldset>
</form>

<p>如果表单周围没有边框,说明您的浏览器太老了。</p>

</body>
</html>

        <fieldset class='layui-elem-field' style="margin: 10px; padding: 10px">
            <legend align="left">上报信息</legend>
                啊啊啊啊
        </fieldset>

猜你喜欢

转载自www.cnblogs.com/w-yu-chen/p/13188140.html
今日推荐