<strong>按钮组件:<br></strong> <font style="COLOR: #ff0000">$(selector).button([options]);<br></font><div class="codetitle"> <span><a style="CURSOR: pointer" data="90810" class="copybut" id="copybut90810" onclick="doCopy('code90810')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code90810"> <br><br><br><br><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br><title>ButtonIcon</title> <br><link rel="stylesheet" type="text/css" href="themes/ui-lightness/jquery.ui.all.css"> <br><script type="text/javascript" src="JS/jquery-1.4.2.min.js"></script><br><script type="text/javascript" src="JS/jquery.ui.core.js"></script><br><script type="text/javascript" src="JS/jquery.ui.widget.js"></script><br><script type="text/javascript" src="JS/jquery.ui.button.js"></script><br><script><BR>$(document).ready(function(){<BR> $("input,button").button({<BR> icons: {<BR> primary: "ui-icon-locked"<BR> // secondary: "ui-icon-triangle-1-s"<BR> }<BR> });<BR> $("a,div").button({<BR> icons: {<BR> secondary: "ui-icon-triangle-1-s"<BR> }<BR> });<BR>});<BR></script><br><style><BR>body{ padding:30px; font-size:9px; }<BR></style> <br><br><br><input type="button" value="Button 1"><br><input type="submit" value="Submit Button"><br><button>Button 2</button><br><input type="checkbox" id="check1"><label for="check1">Check 1</label><br><input type="radio" id="radio1"><label for="radio1">Radio1</label><br><a>Anchor</a><br><div>DIV</div> <br><br><br> </div> <br><strong></strong>