<!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のみ
opacity: 100%;
か::
opacity: 1;
また、あなたが閉じるのdivタグが欠落している、私は感謝
あなたの質問は本当に分かりませんが、 'class2'に間違いがあります。これは' opacity:100px'ではなく 'opacity:100'でなければなりません。たぶんそれが全体の問題です。 – Nessuno