【发布时间】:2013-02-05 01:19:42
【问题描述】:
这是我的代码-
<div id="normal-toggle-button" class="toggle-button" style="width: 100px; height: 25px;">
<div style="left: 0px; width: 150px;"><input type="checkbox" checked="checked"><span class="labelLeft" style="width: 50px; height: 25px; line-height: 25px;">ON</span><label for="" style="width: 50px; height: 25px;"></label><span class="labelRight" style="width: 50px; height: 25px; line-height: 25px;">OFF </span></div>
</div>
</div>
脚本-
$(document).ready(function() {
$('#normal-toggle-button').toggleButtons();
});
我想要这个页面上的基本按钮-Switch buttons
我做得很好。但我仍然错过了一些东西。
在这里签到- Fiddle
【问题讨论】:
-
你当然需要样式!
-
我认为这篇文章会有所帮助stackoverflow.com/questions/4177159/…
标签: javascript jquery twitter-bootstrap uiswitch