In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the methods of setting underlining in css". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the methods of underlining css?"
1. The text is displayed by underlining.
Use tags in html to underline u-tagged text
But notice that the u tag is a pair of tags that begin and end, and I am underlined.
2. Hyperlink text underline-detailed introduction of css hyperlink
We often need to let the text with hyperlinks be displayed in an underlined way, while the mouse is put up and underlined and the text with links is not displayed. Next, we underline the hyperlinks through css.
Use the code text-decoration
Syntax:
Text-decoration: none | | underline | | blink | | overline | | line-through
Text-decoration parameters:
None: no decoration
Blink: flashing
Underline: underline
Line-through: through line
Overline: underline
"div css" is added to the css link, and the css attribute an is underlined (a {text-decoration:underline;}) in the css style, but the mouse is placed (a:hover {text-decoration:none;}) underlined.
3. Underline the hyperlink text by placing the mouse on it.
According to the second point (2, the hyperlink text underline) through css to let the hyperlink text underline, the mouse is put up to remove the underline, the third point is just opposite to the second point, the hyperlink naturally does not show an underscore a {text-decoration:none;}, while the mouse appears underlined a:hover {text-decoration:underline;}.
4. There is an underline-object underline when the mouse is placed on an area
This is commonly used by us, we can set a class style for its div (the difference between id and class), such as: .ys: hover {text-decoration:underline; cursor:pointer;}, explain that cursor is the mouse label (cursor introduction), and pointer is the finger display.
By setting the css style for "ys" in this way, there will be an underline in the browser when the mouse is over the text, and here there is an underline not because of the hyperlink, which is the same principle as the hyperlink.
At this point, I believe you have a deeper understanding of "what are the methods of underlining css?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.