最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to customise jquery ui dialog box title color and font size? - Stack Overflow

programmeradmin0浏览0评论

How can I change color and other attributes of the jquery ui dialog box title

HTML :
<div id="dialog" title=""
style="display: none; font-size: 15px; width: 500; height: 300"></div>

javascript :
 $( "#dialog" ).dialog( "option", "title",title );

Please give me some idea to customize the title of jquery dialog.Thank you in Advance.

How can I change color and other attributes of the jquery ui dialog box title

HTML :
<div id="dialog" title=""
style="display: none; font-size: 15px; width: 500; height: 300"></div>

javascript :
 $( "#dialog" ).dialog( "option", "title",title );

Please give me some idea to customize the title of jquery dialog.Thank you in Advance.

Share Improve this question asked Oct 22, 2012 at 7:40 JerichoJericho 11k38 gold badges123 silver badges205 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 15

These classes shape the container of the dialog box title

ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix

This class shapes the text

ui-dialog-title

You could edit these classes in the css file for the jquery ui style. Or you could overwrite these in your own css file.

.ui-dialog-title{
    font-size: 110% !important;
    color: #FFFFFF !important;
    background: #000000 !important;
}

The "!important" might not be necessary.

You can find this out yourselves using developer tools.

发布评论

评论列表(0)

  1. 暂无评论