HR removes the shadow part and is fully compatible across browsers

Source: Internet
Author: User

Many people on the internet copy others' answers. Even the descriptions are similar. The online descriptions are as follows:


In HTML, the height of the Central Water Balance line HR is two pixels by default. The border-top height is 1px, the color is black, and the border-bottom height is 1px. In this case, the shadow effect is displayed, it is easy to remove the shadow. You only need to set the border-bottom or border-top attribute to none in CSS.


This is the only option, but it is not compatible with border-top or border-bottom. The correct method is (take the dot line as an example ):

<HR style = "border: none; border-top: 1px dotted #000; Height: 1px;"/>. Note that height: 1px must be added;

HR removes the shadow part and is fully compatible across browsers

Related Article

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.