Home > WeChat Applet > Mini Program Development > WeChat applet picture border solution

WeChat applet picture border solution

黄舟
Release: 2017-01-20 17:33:06
Original
3841 people have browsed it

Solution to the WeChat applet image border problem

When we first build the web page, we don’t know what specific images need to be placed on the website, so we often place an empty img tag. But in this case, because the image tag does not have a src value, a black border will be displayed on the website.

The code and effect are shown as follows:

WeChat applet picture border solution

WeChat applet picture border solution

Here we will solve the black border problem and propose two solutions:

1. Set the opacity of the image: 0;

WeChat applet picture border solution

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 content of the WeChat applet picture border solution. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template