![](/img/trans.png)
[英]Using jQueryUI Dialog, how can I get the element that opened the dialog?
[英]How do I get jQueryUI's 'dialog' widget to use the `ui-state-error` styles?
我正在使用jQuery UI網站上提供的標准主題之一(redmond)。
我注意到它附帶了帶有紅色圖標和藍色圖標的png文件。 我需要顯示一個警告對話框,但改為使用紅色圖標。
我注意到在主題的樣式表中有一個名為“Interaction Cues”的部分。 我只是將dialogClass
設置為ui-state-error
,這似乎有所需的效果,這是正確的方法嗎?
我嘗試設置dialogClass: "error"
但是沒有效果。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.