CSS에서 이와 비슷한 것을 사용할 수 있습니까?하나의 CSS 블록이 다른 블록을 사용할 수 있습니까?
.bordered
{
border: 10px dashed yellow;
}
form input
{
use .bordered;
font-size: 10px;
}
또는 어떻게 각 CSS 코드 블록을 html 요소에 쓰지 않고도이 작업을 수행 할 수 있습니까?
.bordered,
form input {
border: 10px dashed yellow;
}
form input {
font-size: 10px;
}
또는, 당신은 하나 하나 모든 선택기를 나열하지 않도록하려는 경우, 당신은 스타일 클래스를 생성하고 추가 할 수 있습니다 : 당신이 CSS의 처리기를 사용하지 않는
'LESS' 나'SASS'와 같은 것입니다. – melancia
".someClass 사용"을 본 적이 없음 – frenchie
중복 가능성 : http://stackoverflow.com/questions/10751966/import-css-selector-styles-in-another-selector-not-import/11071806#11071806 – dramzy