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](https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2014/09/1409625392fieldset-legend-300x46.png)
It’s also possible to nest fieldsets as a means to subgroup items, as shown here:
也可以嵌套字段集作为子项分组的一种方式,如下所示:
![markup-maker-nested-fieldset](https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2014/09/1409625430markup-maker-nested-fieldset-272x300.png)
例 (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
。
python字段添加元素