What are the differences between the dividing line hr in different browsers?

php中世界最好的语言
Release: 2018-02-01 09:32:33
Original
2330 people have browsed it

This time I will bring you the difference between the dividing line hr in different browsers. What are the precautions when using the dividing line hr in different browsers. The following is a practical case. Let’s take a look. .

Homepage Let’s first understand the differences in hr under various browsers, as followsTable:
For example, if you want to create a page with an actual height of 3px, a border of 1px, and a border color The dividing line is #07f and the background color is #f60:

hr{ 
height:1px; 
background-color:#f60; 
border:1px solid #000; 
*height:3px;/* for ie6 ie7 */ 
color:#f60;/* for ie6 ie7 */ 
} 
@-moz-document url-prefix(){ hr{height:3px;}} /* for firefox */
Copy after login

I believe you have mastered the method after reading these cases. For more exciting content, please pay attention to other related articles on the PHP Chinese website!

Related reading:

How to set the focus of an html element

htmlHow to control its properties when opening a new window with a hyperlink

How to use progressive enhancement and graceful degradation in css3

The above is the detailed content of What are the differences between the dividing line hr in different browsers?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!