我有一些单选按钮
<div class="buttonset">
<input name="radio12" type="radio" class="" id="radio5" />
<label class="yesno">Yes</label>
<input name="radio12" type="radio" class="" id="radio6" />
<label class="yesno">No</label>
</div>我的头上也有这个代码
<link rel="stylesheet" ref="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-darkness/jquery-ui.css" type="text/css" media="all" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
<script>
$(document).ready(function() {
$(".buttonset").buttonset();
alert ("Buttons created");
});
</script>并且我的单选按钮没有像预期的那样呈现为按钮。
我遗漏了什么?
这个jsfiddle页面有一个不工作的示例http://jsfiddle.net/jd3Km/1/
在@soderslatt提出添加资源的建议后,我得到了以下内容

发布于 2011-11-28 22:05:50
包括jquery ui css
http://jsfiddle.net/jd3Km/5/
https://stackoverflow.com/questions/8291275
复制相似问题