嗨我建設我的網頁上的按鈕一樣,如何覆蓋按鈕的JQuery
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$("#insert-image-button")
.button()
.click(function() {
$("#AttachImage").dialog("open");
});
</script>
<button id="insert-image-button">Create new user</button>
按鈕使用標準的jQuery風格diplayed默認樣式。我該如何爲該按鈕提供我自己的風格。什麼是最好的方法?
螢火蟲說
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
所以我自定義的CSS文件會覆蓋一個在谷歌CDN? – 2011-06-01 13:01:56
是的,如果它包含在Google之後的標題中。 – Edgar 2011-06-01 17:15:00