<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello!</title>
<style type="text/css">
.class1{
border:10px solid #000000;
padding:5px;
border-radius:12px;
opacity: 0.1;
}
.class2{
border:10px solid #000000;
padding:5px;
border-radius:12px;
opacity: 100px !important;
}
</style>
</head>
<body>
<div class="class1">
nghi
<div class="class2">
nghi2
</div>
</body>
</html>
HTML 파일. 나는 2 div가있다. 불투명도 div2가 아닌 불투명도 class1 만 원한다. div2에 중요한 속성을 사용하고 있지만 효과는 없다. 날이어야한다 그것에게 감사CSS의 불투명도 div
나는 정말로 당신의 질문을 이해하지 못한다. 그러나'class2'에 실수가있다. 그것은 'opacity : 100px' 대신에'opacity : 100'이어야한다. 어쩌면 그것이 전부 문제 일 수 있습니다. – Nessuno