Home >Web Front-end >HTML Tutorial >Solution to the problem that the background image of a tag is not displayed under IE8_HTML/Xhtml_Web page production
I encountered a small problem today and struggled with it for a long time. I want to share the
a tag to add a background image. I need to add the display:block style
to a. However, the background image still cannot be displayed under IE8. Let’s start. I thought it was because the a tag was empty. I tried adding content but it didn’t work. Then I noticed a little detail and it can be displayed normally after modification.
Before modification: