【发布时间】:2021-03-11 21:59:26
【问题描述】:
我需要你的帮助。
如果单击.radios .mevcut input ~ #checks,则显示 div。
如何在checks div 上不显示任何内容。
.radios .mevcut input~#checks {
display: none;
}
<div class="radios">
<h4>Proje Türü</h4>
<input type="radio" id="statik" checked="checked" name="projeturu" value="statikproje">
<label for="statik">Statik Proje</label>
<input type="radio" id="fenni" name="projeturu" value="fenniproje">
<label for="fenni">Fenni Mesuliyet</label>
<div class="mevcut">
<input type="radio" id="mevcut" name="projeturu" value="mevcutyapi">
<label for="mevcut">Mevcut Yapı</label>
</div>
</div>
<div class="checks" id="checks">
<h4>Hizmet Bölümleri:</h4>
<input type="checkbox" id="checks-oneri-raporu" name="projeturu" value="statikproje">
<label for="checks-oneri-raporu">Öneri Raporu</label>
<input type="checkbox" id="checks-on-proje" name="projeturu" value="fenniproje">
<label for="checks-on-proje">Ön Proje</label>
<input type="checkbox" id="checks-uyg-projesi" checked="checked" name="projeturu" value="mevcutyapi">
<label for="checks-uyg-projesi">Uygulama Projesi ve Detayları</label>
<input type="checkbox" id="checks-metraj" name="projeturu" value="fenniproje">
<label for="checks-metraj">Metraj[Kalıp,Demir,Beton,Duvar]</label>
<input type="checkbox" id="checks-celik" name="projeturu" value="mevcutyapi">
<label for="checks-celik">Çelik</label>
</div>
【问题讨论】:
-
用 css 做这件事可能很复杂。您可以尝试使用 JavaScript。
-
Okey bro eyw kirve baştacısın.
标签: javascript html css web