Today, I found a small problem in my Internet site under IE. After reading css, I added float: right to the date span, the display in Google chrome and firefox is normal. See the following css code: & amp; lt; styl
Today, I found a small problem in my Internet site under IE. After reading css, I added float: right to the date span, the display in Google chrome and firefox is normal. See the following css code:
Php point-to-point demonstration
Display result:
You can see that the date is obviously moved down:
The reason is as follows:
When the non-float element and the float element are together, if the non-float element comes first, the float element will be excluded!
Solution (two types ):
(1) Move the span to the front of the text
The above is:
2012-08-05php point-to-point demonstration
(2) Add float to the text
For example:
Php point-to-point demonstration
The normal display result should be: