Questions about & amp; lt; hr/& amp; gt; in various browsers

Source: Internet
Author: User

Generally, we rarely see HR, but it is possible to die and death. The same is true in HTML. We are not familiar with

Normal browsers IE6 and 7 Firefox
Actual height + border-right-width + border-left-width height
Background color background-color background + color (when the height is less than 2px, the display height is a gray projection, and the color must be set, the same as the text) background-color
For example, to create a dividing line with the actual height of 3px, the four sides of 1px, the border color of # 07f, and other colors of # f60, you know:


Hr {

Height: 1px;

* Height: 3px; color: # f60;/* for ie6 ie7 */;

Background-color: # f60;

Border: 1px solid # 07f;

}

@-Moz-document url-prefix () {hr {height: 3px ;}}/* for firefox */


Are there other solutions that are more labor-saving?

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.