In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "how to use a tag style and a tag attribute writing". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
A label Styl
A set of specialized predefined classes, called pseudo classes, are mainly used to deal with the state of hyperlinks. The status of hyperlink text can be controlled by pseudo-class selector + style rules. Pseudo-class selectors include:
Total: a represents connections in all states such as .mycls a {color:red}
① a:link: links are not accessed, such as .mycls a:link {color:blue}
② a:visited: visited links, such as .mycls a:visited {color:blue}
③ a:active: the color of the link when activated (when the link is in focus), such as .mycls a:active {color:blue}
④ a:hover: when you mouse over a link, such as .mycls a:hover {color:blue}
In general, the state (color, underscore, etc.) of a:hover and a:visited links should be the same.
The first three correspond to the link, vlink and alink attributes of the body element, respectively.
The sequence of the four "states" is a:link-> a:hover-> a:active-> a:visited. In addition, a:active cannot set whether there is an underscore (there is always one).
For example: common status values of pseudo-classes
The code is as follows:
A tag attribute
A tags appear in pairs, beginning and ending
Attribute.
Common-General attribute
Accesskey-Shortcut key access that represents a link
Charset-specifies the encoding used to link to the page, such as UTF-8
Coords-you can use this property to define the linked area when using an image map, usually using the XMagne y coordinates
Href-represents a link source (that is, where to link to)
Hreflang-indicates the language encoding used to link to the page
Rel-represents the relationship between the document and the content to which it is linked (what href refers to)
Rev-represents the relationship between the document and the content to which it is linked (what href refers to)
Shape-you can use shape to specify the link area when using image maps
Tabindex-represents the order in which links are traversed using the "tab" key
Target-used to indicate which window or frame should be opened by this link
Title-additional prompts that represent links
Type-represents the MIME type of the link
This is the end of the content of "how to use a tag style and a tag attribute writing". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.