<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>纯CSS3水平控制按钮开关 - 网页模板</title>
<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
</head>
<body>
<div class="main">
<h1>Pure CSS Segmented Controls</h1>
<nav class="segmented-control segmented-control--turquoise" style="width: 600px;">
<input type="radio" name="sc-0" id="sc-0-1" />
<input type="radio" name="sc-0" id="sc-0-2" checked="checked" />
<input type="radio" name="sc-0" id="sc-0-3" />
<input type="radio" name="sc-0" id="sc-0-4" />
<label for="sc-0-1" data-value="Lorem Ipsum">Lorem Ipsum</label>
<label for="sc-0-2" data-value="Cras justo">Cras justo</label>
<label for="sc-0-3" data-value="Tellus Etiam">Tellus Etiam</label>
<label for="sc-0-4" data-value="Lorem Pellentesque">Lorem Pellentesque</label>
</nav>
<br />
<nav class="segmented-control" style="width: 600px;">
<input type="radio" name="sc-2" id="sc-2-1" />
<input type="radio" name="sc-2" id="sc-2-2" checked="checked" />
<label for="sc-2-1" data-value="Cras Pharetra">Cras Pharetra</label>
<label for="sc-2-2" data-value="Ultricies Justo">Ultricies Justo</label>
</nav>
<br />
<nav class="segmented-control segmented-control--red" style="width: 600px;">
<input type="radio" name="sc-1" id="sc-1-1" />
<input type="radio" name="sc-1" id="sc-1-2" checked="checked" />
<input type="radio" name="sc-1" id="sc-1-3" />
<label for="sc-1-1" data-value="Fringilla Justo">Fringilla Justo</label>
<label for="sc-1-2" data-value="Ipsum Parturient">Ipsum Parturient</label>
<label for="sc-1-3" data-value="Porta">Porta</label>
</nav>
</div>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
<p>来源:<a href="http://www.moobnn.com/" target="_blank">网页模板</a></p>
</div>
</body>
</html>