Some properties in CSS are preceded by "*" or "_".

Some properties in CSS are preceded by "*" or "_".

Some properties in CSS are preceded by "*" or "_".

Identify different browsers

For example:

color{
         background-color: #CC00FF; /*All browsers will display it as purple*/
         background-color: #FF0000\9; /*IE6, IE7, IE8 will display red*/
         *background-color: #0066FF; /*IE6 and IE7 will turn blue*/
         _background-color: #009933; /*IE6 will turn green*/
}
body{

        background:red; /*For Firefox and other browsers;*/
        *background:blue !important; /*For IE7, IE7 can recognize both the * sign and important; */
        *background: green; /*Even IE6 can recognize the * number*/
}

Summarize

The above is what I introduced to you. Some attributes in CSS will be preceded by "*" or "_" which means something. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Analysis of basic usage of ul and li

>>:  Solution to the problem that Docker container cannot access Jupyter

Recommend

JavaScript canvas to achieve raindrop effect

This article example shares the specific code for...

Play mp3 or flash player code on the web page

Copy code The code is as follows: <object id=&...

Implementing access control and connection restriction based on Nginx

Preface Nginx 's built-in module supports lim...

Summary of WEBAPP development skills (notes for mobile website development)

1. To develop web responsively, the page must ada...

How to create a responsive column chart using CSS Grid layout

I have been playing around with charts for a whil...

Web Design: Script Materials Reconstruct User Experience

<br />Original text: http://blog.rexsong.com...

IIS and APACHE implement HTTP redirection to HTTPS

IIS7 Download the HTTP Rewrite module from Micros...

How to deploy Vue project using Docker image + nginx

1. Packaging Vue project Enter the following name...

Vue implements accordion effect

This article example shares the specific code of ...

A brief discussion on the design and optimization of MySQL tree structure tables

Preface In many management and office systems, tr...

The most common mistakes in HTML tag writing

We better start paying attention, because HTML Po...

Tutorial on installing Apache 2.4.41 on Windows 10

1. Apache 2.4.41 installation and configuration T...

How to use explain to query SQL execution plan in MySql

The explain command is the primary way to see how...

JavaScript navigator.userAgent obtains browser information case explanation

The browser is probably the most familiar tool fo...