Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ラジオボックスの内側の円を非表示にして、スタイルをコーナーに変更するにはどうすればよいですか。下の写真をご覧ください。
CSS:
input[type="radio"] { width: 166px; height: 32px; position:relative; vertical-align: middle; } input[type="radio"]:checked { background-position: -36px -232px; }
ボタンだけを非表示にすることはできないため、要素全体を非表示にする必要があります。<input>と a などの別の要素をラベルでラップし<span>、入力を非表示にして、代わりにすべてのスタイルを に適用できます<span>(または<label>適切なfor/のid組み合わせで を使用します)。
<input>
<span>
<label>
for
id
http://jsfiddle.net/fapYX/