Description of the hr tag in various browsers

Description of the hr tag in various browsers
Generally, we rarely meet HR, but once we do, it can determine life or death. The same is true in HTML, we don’t see <hr /> very often, but when we see it it usually determines whether we can have a perfect divider. Here, I won’t attach any pictures, just list them for reference:
Normal browser IE6, 7 Firefox
Actual height height + border-right-width + border-left-width height height
Background color background-color background+color (when the height is <2px, the height is displayed as a gray projection, and color is required to set the color, the same as text) background-color

For example, if you want to create a dividing line with an actual height of 3px, four sides of 1px, a border color of #07f, and other parts of the color of #f60, you know:

Copy code
The code is as follows:

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 any other less laborious solutions?

<<:  Detailed explanation of CSS sticky positioning position: sticky problem pit

>>:  An in-depth summary of MySQL time setting considerations

Recommend

Comparison of CSS shadow effects: drop-Shadow and box-Shadow

Drop-shadow and box-shadow are both CSS propertie...

Method of realizing automated deployment based on Docker+Jenkins

Use Code Cloud to build a Git code storage wareho...

How to configure nginx to return text or json

Sometimes when requesting certain interfaces, you...

Summary of some thoughts on binlog optimization in MYSQL

question Question 1: How to solve the performance...

Zabbix3.4 method to monitor mongodb database status

Mongodb has a db.serverStatus() command, which ca...

Analysis of CocosCreator's new resource management system

Table of contents 1. Resources and Construction 1...

How to install ELK in Docker and implement JSON format log analysis

What is ELK? ELK is a complete set of log collect...

Copy the contents of one file to the end of another file in linux

Problem description: For example, the content of ...

Ajax responseText parses json data case study

Solve the problem that the responseText returned ...

The latest mysql-5.7.21 installation and configuration method

1. Unzip the downloaded MySQL compressed package ...

Analysis of two usages of the a tag in HTML post request

Two examples of the use of the a tag in HTML post...

Some common properties of CSS

CSS background: background:#00ffee; //Set the back...

Java uses Apache.POI to export HSSFWorkbook to Excel

Use HSSFWorkbook in Apache.POI to export to Excel...