python字段添加元素_字段集(HTML元素)

python字段添加元素

描述 (Description)

The fieldset is a useful tool for organizing and grouping related items within a form, and has been used for a long time in desktop applications. When it’s combined with the legend (which is contained inside the fieldset, and is a required element if you use the fieldset), it has the effect of creating a box around the grouped items and showing a description to the right of each item, as shown below.

fieldset是用于组织和分组表单中相关项目的有用工具,并且在桌面应用程序中已使用了很长时间。 当它与图例(包含在fieldset ,并且是必填元素,如果使用fieldset )组合在一起时,它的作用是在分组的项目周围创建一个框,并在每个项目的右侧显示说明,如下所示:如下所示。

fieldset-legend

It’s also possible to nest fieldsets as a means to subgroup items, as shown here:

也可以嵌套字段集作为子项分组的一种方式,如下所示:

markup-maker-nested-fieldset

(Example)

This fieldset element is used to group three related XFN attributes (see the Microformats section regarding XFN):

fieldset元素用于对三个相关的XFN属性进行分组(请参阅有关XFN微格式部分 ):

<form>
  <fieldset>
      <legend>Friendship</legend>
      <input type="radio" name="radFriendship" value="Not_Applicable"
          id="radFriendNot_Applicable"/>
      <label for="radFriendNot_Applicable">Not_Applicable</label>
      <input type="radio" name="radFriendship" value="acquaintance"
          id="radFriendaquaintence"/>
      <label for="radFriendaquaintence">acquaintance</label>
      <input type="radio" name="radFriendship" value="friend"
          id="radFriendfriend"/>
     <label for="radFriendfriend">friend</label>
  </fieldset>
⋮
</form>

将此用于… (Use This For…)

The fieldset attribute is used to logically group data items that share some characteristics. For example, you may wrap a fieldset around personal details, and another around work details, when capturing information about a visitor in an application form.

fieldset属性用于对共享某些特征的数据项进行逻辑分组。 例如,当在申请表中捕获有关访客的信息时,您可以在个人详细信息周围包裹一个fieldset ,在工作详细信息周围包裹一个fieldset

翻译自: https://www.sitepoint.com/fieldset-html-element/

python字段添加元素

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值