使用jQueryMobile复制iOS 7 syle UISegmentControl

时间:2013-12-06 10:06:57

标签: jquery css jquery-mobile ios7

我是网络技术的新手,目前正致力于混合移动应用,我想在应用中复制iOS的UISegmentControl。像这样的东西,

enter image description here

但我尝试使用HTML和CSS做到这一点,最后这样做了,

enter image description here

色调颜色为#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/

是我到目前为止所尝试的。我知道可以做同样的事情,但我被困了,任何帮助都表示赞赏。

0 个答案:

没有答案