このプロジェクトには、javascriptを使用できないという特殊性があります。要点は、チェックされていないラジオボタンに関連するコンテンツをすべて非表示にすることです。ページが読み込まれた後、すべてのコンテンツが表示されますが、1つのラジオボタンのコンテンツが選択された後、他のすべてのラジオボタンが消えるようにする必要があります。CSSでチェックされていないラジオボタンしか表示されない
これは私のマークアップです:
<label>
<input type="radio" name="group1" value="1" />
<div class="radio-sample">
<img src="http://placehold.it/150x150">
<div class="con">
<p>"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."</p>
<div type="button" class="btn btn-primary pull-right">1Primary</div>
</div>
</div>
</label>
<label>
<input type="radio" name="group1" value="2" />
<div class="radio-sample">
<img src="http://placehold.it/150x150">
<div class="con">
<p>"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."</p>
<div type="button" class="btn btn-primary pull-right">2Primary</div>
</div>
</div>
</label>
<label>
<input type="radio" name="group1" value="3" />
<div class="radio-sample">
<img src="http://placehold.it/150x150">
<div class="con">
<p>"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."</p>
<div type="button" class="btn btn-primary pull-right">2Primary</div>
</div>
</div>
</label>
です。 – APAD1
は、2つのラジオボタンのコンテンツのみで動作し、3つ以上は動作しません。これは指定しませんでしたが、要件です。 – lopezi