我是网络技术的新手,目前正致力于混合移动应用,我想在应用中复制iOS的UISegmentControl。像这样的东西,
但我尝试使用HTML和CSS做到这一点,最后这样做了,
色调颜色为#ff8400。
<div id="itemColorSizeToogleDiv">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<input type="radio" name="radio-choice" id="radio-choice-1" value="choice-1" checked="checked" />
<label for="radio-choice-1">Size</label>
<input type="radio" name="radio-choice" id="radio-choice-2" value="choice-2" />
<label for="radio-choice-2">Color</label>
</fieldset>
</div>
JSFIDDLE: http://jsfiddle.net/4JFS6/
是我到目前为止所尝试的。我知道可以做同样的事情,但我被困了,任何帮助都表示赞赏。