Home > Web Front-end > HTML Tutorial > The a tag set img is one pixel higher_html/css_WEB-ITnose

The a tag set img is one pixel higher_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:02:20
Original
1175 people have browsed it


a {
margin-left: 20px; Float: Right: Right;
Text-DECORATION: None;
Margin: 0px;
Padding: 0px;
}

border: 0px none;
       margin: 0px; >
Reply to discussion (solution)

a {display:block}

Just defining display:black is useless, you have to add width and height

Is there anything else Another way, I don’t want to add width and height, that would be very troublesome


Is it to be 1 pixel higher on all four sides? Or is it only 1 pixel higher than the top?

According to my understanding, the margins of the A tags on the four sides are 1 pixel higher than those of the IMG. I don’t know if this is the case?




Just modify the padding value.

I don’t know if this helps you!

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