테스트 사이트 - 개발 중인 베타 버전입니다

선택자 질문좀요 채택완료

버섯먹은나 11년 전 조회 3,796

<td>

<a class="button" href="http://naver.com">http://naver.com">네이버</a> 

</td>

<td>

<a class="button" id="HomepageGo" href="http://daum.net">http://daum.net">다음</a>

</td>

 

 

위에처럼 두개가 비슷 하고 밑에만 id 가 있을때 전 위에 네이버만 선택 하고 싶은데 어떻게 하면 될까요?

 

지금은 a.button 으로 하니 두개다 인식하던데

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
11년 전

a.button

class 가 button 을 선택한것인데요


#HomepageGo a.button

이런 css를 사용해 보시죠 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

진서기
11년 전

클래스 여래개 줘도 됩니다.​ 

<a class="button naver" href="http://naver.com/" target="_blank" style="font-family: gulim, helvetica; line-height: 23.54400062561035px; font-size: 12px; color: rgb(0, 0, 0);">http://naver.com/" target="_blank" style="font-family: gulim, helvetica; line-height: 23.54400062561035px; font-size: 12px; color: rgb(0, 0, 0);">http://naver.com">네이버</a> 

 

 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인