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
The first step is to unzip the compressed package...
Table of contents Preface How to switch between m...
Table of contents 1. What is two-way data binding...
Table of contents Components - Timeline Custom no...
The element ui table does not have a built-in dra...
In order to enhance the ability to write JavaScri...
When developing mobile apps, you often encounter ...
1. Background We do some internal training from t...
When using Docker in a production environment, da...
Today I made a menu button. When you move the mous...
Rem layout adaptation The styles in Vant use px a...
Judgment symbols are often used in MySQL, and not...
1. Check the software installation path: There is...
Preface: The most commonly used architecture of M...
How to refresh iframe 1. To refresh, you can use j...