When making a web page, you sometimes use a dividing line hr, but it is very painful to display it in IE6 and IE7. This article will teach you how to write an hr that is compatible with all browsers.![]() Home page Let's first understand the differences between hr in various browsers, as shown in the following table: For example, if you want to create a dividing line with an actual height of 3px, a border of 1px, a border color of #07f, and a background color of #f60: Copy code The code is as follows: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 */ |
<<: How MySQL supports billions of traffic
>>: Detailed explanation of the solution to font blur when using transform in CSS3
need: Use docker to start nginx + tomcat dual pro...
Deleting a table is not very common, especially f...
In order to prevent non-compliant data from enter...
Table of contents 1. Prototype chain inheritance ...
Through the study and application of Node, we kno...
Table of contents Parent component listBox List c...
1. Set the parent container to a table and the ch...
1. What is a transaction? A database transaction ...
The project test environment database data is los...
Table of contents Node connects to Mysql Install ...
Table of contents Creating OAuth Apps Get the cod...
Preface Zabbix is one of the most mainstream op...
Recently, I need to implement a cascading selecti...
When using Docker containers, it is more convenie...
Table of contents 1. Arithmetic operators 2. Comp...