우선이 질문이 진짜입니다! 그래서 나는 링크를위한 클래스를 만들고 모든 태그에 CSS를 적용하지 않고이 클래스의 CSS 코드를 만들었지 만 작동하지 않습니다. 내 코드의 지점이 클래스는 태그에 사용되는 같은 클래스 redlink을하는 것입니다 해두 있도록태그 링크 css가 작동합니까?
.redlink
{
color: red;
font-family: 'Finger Paint', cursive;
}
.redlink.a.link
{
text-decoration: none;
color: red;
font-family: 'Finger Paint', cursive;
}
.redlink.a.hover
{
text-decoration: none;
color: orange;
font-family: 'Finger Paint', cursive;
}
.redlink.a.visited
{
text-decoration: none;
color: red;
font-family: 'Finger Paint', cursive;
}
.redlink.a.active
{
text-decoration: none;
color: red;
font-family: 'Finger Paint', cursive;
}
.redlink.a.
{
text-decoration: none;
color: red;
font-family: 'Finger Paint', cursive;
}
이 내가 한 달 전에 CSS 배운 내가이 atempting있어 처음이다. 내가 바보 같은 실수를하면 미안해. 기본적으로 코드는 기본 .redlink 클래스와 별개로 작동하지 않습니다. 다음은 html입니다.
<a href="#" class="redlink">I should light up orange!</a>
감사합니다. 모든 클래스에 기본 태그 클래스에 대해 한 번 쓸 수는 충분히 가족 -
"Btw"는 잘못되었습니다 :'font-style : italic '은 이탤릭체 글자체의 서체 인 반면, '필기체'라는 일반 이름은 완전히 다른 것을 의미합니다 (일반적으로 돈이 많이 드는 방식으로 구현됩니다). –
okay.png 7 자세히 –