Look at the code: Copy code The code is as follows:< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="//www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> <!-- p{font-size:12px;} p:first-letter{font-size:300%} --> </style> </head> <body> <p>To the world you may be one person, but to one person you may be the world. Even if you are sad, don't frown, because you never know who will fall in love with your smile. </p> </body> </html> This code has no effect on the first letter style definition of <p> in IE6. However, after adding a space between p:first-letter and {font-size:300%}, that is, p:first-letter {font-size:300%}, the display becomes normal. This problem mainly occurs in IE6 browser, and this friend also explained some necessary triggering conditions: 1. IE6 browser 2. The selector has a pseudo-class 3. The pseudo-class must contain a connector "-", for example: first-letter 4. Is there any space? |
<<: MySQL uses binlog logs to implement data recovery
Overview Let's summarize some SQL statements ...
1. v-on event monitoring To listen to DOM events,...
Table of contents Vue custom directive Custom dir...
A colleague once told me to use a temporary table...
Preface: The storage engine is the core of the da...
--Homepage backup 1.txt text 2. Scan the image 3. ...
Today I received a disk warning notification from...
chmod Command Syntax This is the correct syntax w...
Preface The sleep system function in MySQL has fe...
Use CSS3 to achieve cool radar scanning pictures:...
Defining the type of data fields in MySQL is very...
This article example shares the specific code of ...
In the actual projects I participated in, I found...
Table of contents introduce Object attributes in ...
Implementation ideas: Use text-shadow in CSS to a...