<li Role=_javascript Techniques in Bootstrap

Source: Internet
Author: User

Recently in the study of bootstrap3.3.5, encountered a problem do not know <li role="presentation"> exactly what meaning?

On the Internet, there is little domestic information, no expression of the most appropriate meaning, in the GitHub found the relevant information combined with "Turing computer vocabulary"
You can also query the meaning of Turing's computer vocabulary:

Presentation

N. "Web" presentation layer; [Meter] newsletter, list, "Generic Software" demo (Source: Turing computer glossary);
N. Gifts, gifts, descriptions, briefs, introductions, presentations, expressions; [Medical] First dew, appearance (psychological); [after] prompt, hand in single;

It can be inferred that: presentation在bootstrap<li role="presentation"> "The list" is the most appropriate.

Unordered HTML list:

<ul>
 <li>Coffee</li>
 <li>Tea</li>
 <li>Milk</li>
< /ul>

Note The:<ul> label defines an unordered list, and the Li tag defines an unordered list/item.

Same: <li role= "Presentation" > and <a role= "MenuItem" ></a> role playing roles are similar, that is, menu list/item.

The following is a list of "cases":

<div class= "dropdown" > <button class= "btn btn-default dropdown-toggle" type= "button" data-toggle= "dropdown" &
 Gt Choose the variety you like <span class= "caret" ></span> </button> <ul class= "Dropdown-menu" role= "menu" aria-labelledby= "dropdownMenu1" > <li role= "Presentation" class= "Dropdown-header" > Choose your favorite Fruit </li> < Li role= "presentation" ><a role= "MenuItem" tabindex= "-1" href= "#" > Apple </a></li> <li role= " Presentation "><a role=" MenuItem "tabindex="-1 "href=" # "> Banana </a></li> <li role=" Presentation " ><a role= "MenuItem" tabindex= "-1" href= "#" > Pineapple </a></li> <li role= "presentation" class= " Divider "></li> <li role=" presentation "class=" Dropdown-header "> Choose your favorite trees </li> <li role=" Presentation "><a role=" MenuItem "tabindex="-1 "href=" # "> Pine </a></li> <li role=" Presentation " ><a role= "MenuItem" tabindex= "-1" href= "#" > Aspen </a></li> <li role= "Presentation" ><a role= "MenuItem" tabindex= "-1" href= "#" > Willow </a></li> <li role= " Presentation "class=" divider "></li> <li role=" presentation "class=" Dropdown-header "> Choose your favorite vegetables </li > <li role= "presentation" ><a role= "MenuItem" tabindex= "-1" href= "#" > Celery </a></li> <li role= "Presentation" ><a role= "MenuItem" tabindex= "-1" href= "#" > Radish </a></li> <li role= " Presentation "><a role=" MenuItem "tabindex="-1 "href=" # "> Cabbage </a></li> <li role=" Presentation " class= "Divider" ></li> </ul> </div>

The above is a small set to introduce the bootstrap in <li role= "presentation" > True meaning of the analysis, I hope to help you, if you have any questions welcome to my message, small series will promptly reply to everyone, Here also thank you very much for the cloud Habitat Community website support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.