in jquery ui dialog, how can i change the color / contract behind a single modal dialogs

ⅰ亾dé卋堺 提交于 2019-12-23 12:15:55

问题


using the jquery ui modal dialog, the background shades grey (i assuming this is being driven by my theme roller). For one specific modal dialog i want the background to be darker than what i am getting by default with the default options.

More importantly, how can i change the shading on the background screen when i load one specific dialog. In this case, I DON'T want to change the css of my theme roller css as i only want this to apply to one specific page.


回答1:


Could you place the following in your special page : thus overriding the the background

<style>
 .ui-widget-overlay {
      background: url("images/ui-bg_flat_0_aaaaaa_40x100.png") repeat-x scroll 50% 50% #AAAAAA;
       opacity: 0.3;
  }
</style>

Just adjust the opacity to the level you want and for IE you might need modify the image as well..

Hope i understand you...



来源:https://stackoverflow.com/questions/5449100/in-jquery-ui-dialog-how-can-i-change-the-color-contract-behind-a-single-modal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!