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
I am using the Ubuntu 16.04 system here. Installa...
Table of contents Various ways to merge objects (...
IIS7 Download the HTTP Rewrite module from Micros...
1. There are generally two methods for Vue routin...
Preface JavaScript is not like other languages ...
Table of contents 1. Encapsulate complex page dat...
Friends who have bought space and built websites s...
introduction Currently, k8s is very popular, and ...
This article example shares the specific code of ...
First, there is only one change event. changeleve...
1. Unzip mysql-8.0.21-winx64 2. Configure environ...
Table of contents 1. Database constraints 1.1 Int...
Table of contents 1. What is DOM 2. Select elemen...
This article example shares the specific code of ...
1. MS SQL SERVER 2005 --1. Clear the log exec(...