Home >Web Front-end >HTML Tutorial >Solution to the ugly blue border produced after adding hyperlink to html image img

Solution to the ugly blue border produced after adding hyperlink to html image img

高洛峰
高洛峰Original
2017-03-08 15:39:362464browse

html img produces an ugly blue border after adding a hyperlink

As follows:
Solution to the ugly blue border produced after adding hyperlink to html image img
Solution:
Add a style to the CSS style sheet:

The code is as follows:

img {
border:0;
margin:0;
padding:0;
}


Solution to the ugly blue border produced after adding hyperlink to html image img

The above is the detailed content of Solution to the ugly blue border produced after adding hyperlink to html image img. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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