여기 코드를 참조하십시오 .. JS Fiddle. 첫 번째 이미지 바로 다음에 파란색의 밑줄이 표시된다는 특이한 문제가 있습니다. 왜 이런 일이 일어나는 걸까요? href를 삭제하면 사라집니다. 매우 특이한 문제. 무엇을해야합니까?HTML 비주얼이 제대로 렌더링되지 않습니다.
HTML :
<body>
<div id="top-bar">
<a target="_blank" href="https://twitter.com/x">
<img class="twitter" src="images/twitter.png">
</a>
<a target="_blank">
<img class="twitter" src="images/twitter.png">
</a>
<a target="_blank" href="https://www.facebook.com/x">
<img id="fb" src="images/fb.png"
onmouseover="this.src='images/fb-hover.png'"
onmouseout="this.src='images/fb.png'">
</a>
</div>
</body>
CSS :
당신의a
태그 내부에 빈의
#top-bar {
height: 50px;
min-height: 50px;
max-height: 50px;
background-color: #166330;
}
body {
margin: 0;
padding: 0;
background-image: url(images/bg.png);
background-size: 100%;
color: white;
}
.twitter {
margin-left: 30px;
margin-top: 10px;
margin-right: 10px;
min-height: 30px;
min-width: 30px;
max-height: 30px;
max-width: 30px;
}
#fb {
min-height: 30px;
min-width: 30px;
max-height: 30px;
max-width: 30px;
}
+1, 특히 옵션 2 – redditor