나는 내가 그것을 수정하도록 :before
요소에 액세스 할 수 있도록하려면, JQuery와에 다음과 같은 SASS 코드액세스 방법 : before element?
a.unfavorite{
width: 20px;
background-position: -71px -28px;
text-decoration: none !important;
&:before {
content: "un-favorite";
background: #000;
color: #fff;
}
}
있습니다.
나는 $('.unfavorite:before')
과 같은 것을 시도했지만 결과가 나오지 않습니다. 내가 잘못하고 있니?
참조 : http://stackoverflow.com/questions/622122/how-can-i-change-the- css-class-rules-using-jquery –