0
4

1 回答 1

1

You have to include one of the themes' CSS files for the jQuery UI widgets to render themselves correctly. I updated your fiddle with the UI Lightness theme file from Google's CDN repository.

You also have to close your ready handler properly to avoid syntax errors:

$(document).ready(function() {
    $('#rx-button').buttonset();
    $('#pr-button').button();
});  // <-- Do not forget the closing parenthesis and the semicolon.

You will find the updated fiddle here.

于 2012-05-04T14:30:45.810 回答