나는 html로 된 버튼을 가지고 있습니다. 사용자가 버튼을 가리키면 버튼의 텍스트가 한쪽으로 이동하고 다른 화살표가 나타납니다 측면. 그러나 내가 그 위에 마우스를 가져 가면 어떤 이유 때문에 작은 모자가 달린 재미있는 "A"가 나타납니다. 이것은 내가 시도한 모든 브라우저에서 발생합니다. 어떤 아이디어로 그것을 고치는 법?이상한 A는 html로 버튼을 움직일 때 나타납니다
html로는 다음과 같습니다
.button {
background-color: #4CAF50;
/* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
border-radius: 8px;
width: 250px;
transition: all 0.5s;
cursor: pointer;
margin-top: 50px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '»';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
<button class="button" style="vertical-align:middle"><span>Contact us today</span>
</button>
질문에 스크린 샷을 첨부 할 수 있습니까? – Samundra
방금 사진을 추가했습니다. –
답변에서 언급했듯이, 그것은 내 끝에서 잘 작동합니다. 모든 가능성을 배제하기 위해»를 작은 따옴표 대신 큰 따옴표로 묶어보십시오. – hulkinBrain