CSS 入力スタイルを変更する方法: 1. 疑似クラス要素を使用してラジオ スタイルを変更します; 2. label を使用して入力をポイントし、ラベル スタイルを変更して効果を実現します。
.div input[type=radio]::after { position: absolute; width: 25px; height: 25px; background: url(../img/inputBG.jpg) no-repeat; background-size: 100% 100%; }
<html> <input type="checkbox" checked="checked" id="aa"/><label for="aa"></label> </html> <style> input[type=checkbox]{ visibility: hidden; } label{ width:20px; height:20px; border:1px solid #707070; } input[type=checkbox]:checked + label{ background: url(../img/duigou.jpg)no-repeat; background-size: 100% 100%; } </style>
css ビデオ チュートリアル]
以上がCSS入力スタイルを変更する方法の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。