When we first build the web page, we don't know what specific images need to be placed in the website, so we often place an empty img tag, but in this case, the image tag has no src value, so A black border will be displayed on the website.
The code and effect are displayed as follows:
Picture: 1.png
Here we will solve the black border and propose two Solution:
1. Set the opacity of the picture: 0;
2. Place another block tag instead of the img tag. Because img here only serves as a placeholder, you can use other tags to replace it. When using it, change it back to the img tag.
The above is the detailed content of Solution to image borders in small program development. For more information, please follow other related articles on the PHP Chinese website!