I encountered a small problem today and struggled for a long time. Let me share it with you. To add a background image to the a tag, you need to add the display:block style to a. But the background image still cannot be displayed in IE8. At first I thought it was because the a tag was empty. I tried adding content but it didn't work. Later I noticed a little detail and it can be displayed normally after modification. Before modification: Copy code The code is as follows:background: url('./img/active/legendBg.png')no-repeat After modification: Copy code The code is as follows:background: url('./img/active/legendBg.png') no-repeat Did you notice that? It’s because of that space. . |
<<: 9 Tips for MySQL Database Optimization
>>: A small piece of HTML code will include the Baidu search bar in your page
There are some differences between filter and bac...
1. Set the list symbol list-style-type: attribute...
Table of contents Preface Prototype chain inherit...
1. Color matching effect preview As shown in the ...
Volume Label, Property Name, Description 002 <...
MySQL string concatenation, interception, replace...
Vertical table Vertical table splitting means spl...
Three types of message boxes can be created in Ja...
Simply put, distinct is used to remove duplicates...
A few days ago, a colleague asked me a question a...
The operating environment of this tutorial: Windo...
Which historical version can the current transact...
bmi Voyager Pitchfork Ulster Grocer Chow True/Sla...
Preface This article mainly introduces the releva...
Perfect solution to the scalable column problem o...