모든 우선순위를 이기는 방법
!important를 사용한다.
우선순위 예시
<!DOCTYPE html>
<html>
<head>
<style>
#idsel{
color : blue;
}
.classsel{
color : green;
}
div{
color : black;
}
</style>
</head>
<body>
<div id="idsel" class="classsel" style="color: red">HELLO</div>
</body>
</html>
!important 사용 예시
<!DOCTYPE html>
<html>
<head>
<style>
#idsel{
color : blue;
}
.classsel{
color : green;
}
div{
color : black !important;
}
</style>
</head>
<body>
<div id="idsel" class="classsel" style="color: red">HELLO</div>
</body>
</html>