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
Table of contents Preface Create a Vite project R...
To be honest, this question involves a lot of cor...
Table of contents What is an agent Basic knowledg...
Deployment environment: Installation version red ...
<br /> Note: All texts, except those indicat...
Table of contents JavaScript private class fields...
Here is a common one-click performance test scrip...
Building an image is a very important process in ...
Now most of the Docker images are based on Debian...
Hello everyone, I am Tony, a teacher who only tal...
Table of contents 1. Download 2. Install nginx an...
The project scaffolding built with vue-cli has al...
Preface Application scenario: probably the intern...
Table of contents Overview 1. Test for null value...
Table of contents Preface Mysql case when syntax:...