이 html 코드가 있습니다.이 버튼은 이제이 두 버튼에 다른 CSS를 제공해야합니다.버튼에 대한 CSS 속성
도와 주실 수 있습니까?
<div class="modal" style="display: none;">
<button type="button" class="action confirm">Konfirmo</button>
<button type="button" class="action cancel">Anullo</button>
</div>
내가 그 두 개의 버튼에 다른 CSS를 제공하기 위해 노력하고 .modal .button .confirm 과 같이해야한다. 그래서, 어떻게 할 수 있어요! 감사합니다 ..
내가 당신을 이해하지 못했다, 그래서 뭔가를해야만 같은 것와 두 번째 : .modal 버튼 확인을 {}? –
당신은 .cancel {...}를'클래스 '.modal {...} .button {...} .confirm을 separatley이 세 가지 (또는 그 이상) 선언 {...} 수 그래서 당신은 할 수 요즘 결합하면 CSS 재사용이 가능합니다. –