CSS3单选按钮复选按钮特效代码下载

CSS3单选按钮复选按钮特效代码下载

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/demo.css">

2. HTML代码

<div id="main">
	<div class="demo">
		<div class="col">
          <h4>Checkbox(复选按钮)</h4>
			<div class="opt">
				<input class="magic-checkbox" type="checkbox" name="layout" id="c1">
				<label for="c1">Normal</label>
			</div>
			<div class="opt">
				<input class="magic-checkbox" type="checkbox" name="layout" id="c2" checked>
				<label for="c2">Checked</label>
			</div>
			<div class="opt">
				<input class="magic-checkbox" type="checkbox" name="layout" id="c3" value="option2" disabled>
				<label for="c3" style="color:#ccc">Disabled</label>
			</div>
			<div class="opt">
				<input class="magic-checkbox" type="checkbox" name="layout" id="c4" checked disabled>
				<label for="c4" style="color:#ccc">Checked && Disabled</label>
			</div>
        </div>
        <div class="col">
			<h4>Radio(单选按钮)</h4>
			<div class="opt">
				<input class="magic-radio" type="radio" name="radio" id="r1" value="option1">
				<label for="r1">Normal</label>
			</div>
			<div class="opt">
				<input class="magic-radio" type="radio" name="radio" id="r2" value="option2" checked>
				<label for="r2">Checked</label>
			</div>
			<div class="opt">
				<input class="magic-radio" type="radio" name="radio" id="r3" value="option3" disabled>
				<label for="r3" style="color:#ccc">禁用</label>
			</div>
			<div class="opt">
				<input class="magic-radio" type="radio" id="r4" value="option4" checked disabled>
				<label for="r4" style="color:#ccc">Checked && Disabled</label>
			</div>
        </div>
	</div>
</div>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>

用户评论

18素材网

一个让开发更高效的素材分享平台,用于快速开发强大的Web界面。


官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:864918708
Css3+Html5讨论群
群号:864918708

加群请备注:从官网了解到