Home  >  Article  >  Web Front-end  >  Summarize the example usage of label label

Summarize the example usage of label label

零下一度
零下一度Original
2017-06-07 13:47:033155browse

#label element does not present any special effects to the user. However, it improves usability for mouse users. This control is triggered if you click on the text inside the label element. That is to say, when the user selects the label, the browser will automatically turn the focus to the form control related to the label.

1. The label label in the form

label label will not be displayed to the user Present any special effects that improve usability for mouse users. This control will be triggered if the text is clicked within the label label. That is to say, when the user clicks to select the label, the browser will automatically turn the focus to the form control related to the label (the form control associated with the label will be automatically selected).


2. WeChat applet component label label interpretation and analysis example

Summarize the example usage of label label

label tag is basically the same as the label tag of html. The label element does not present any special effects to the user. However, it improves usability for mouse users. This control is triggered if you click on the text inside the label element. That is to say, when the user selects the label, the focus will automatically go to the form control bound to the label, which is mainly used to improve the usability of the form component.

3. javascript syntax label description

JavaScript language allows, There is a label in front of the statement, which is equivalent to a locator and is used to jump to any location in the program. The format of the label is as follows

The label can be any identifier, but it cannot It is a reserved word, and the statement part can be any statement. The

tag is usually used in conjunction with the break statement and continue statement to jump out of a specific loop.

4. js method of assigning values ​​to label tags and div tags

In html, label does not have a value attribute.
Like p and most other html elements, it has innerText and innerHTML attributes.
Cannot document.getElementByID("test").value ="chenhuang";

5. How to align the fieldLabel and html attribute values ​​​​of Extjs Label

Settings: style:"position:relative;top:2px

<span style="font-size: 14px;">var factorName = new Ext.form.Label({<br/>id : &#39;factorName&#39;,<br/>fieldLabel : &#39;要素名称&#39;,<br/>style:"position:relative;top:2px;",<br/>text : simpleGrid.getItems(&#39;factorName&#39;),<br/>anchor : &#39;100%&#39;<br/>});</span>

6. Form input items use labels and reference the Bootstrap library , causing the input click effect area to increase

Summarize the example usage of label label

In the development of the mobile platform page, in order to make the clickable area of ​​the form items larger For better operation, label can provide corresponding convenience.

But sometimes, we just need the label label, but we don’t want the clickable area to increase for no reason. The introduction of Bootstrap automatically. Increased the clickable area

Related questions and answers:

1. What does the label label mean? Can anyone give me some advice?

2. objective-c - Labels that exceed a certain number of lines are forced to add a... at the end and can be expanded. Click to read the full text

[Related recommendations]

1. C# Detailed sample code for Label control with scroll bar

2. Solution to the invalid label error when Jquery obtains Json across domains

3. Java Example-Label

The above is the detailed content of Summarize the example usage of label label. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn