jQuery UI Dialog Titlebar too tall

后端 未结 4 1717
渐次进展
渐次进展 2021-02-19 19:20

I am using a jQuery UI Dialog to pop-up some supplementary information on one of my pages. For some reason, in Chrome 11 and Firefox 4, the titlebar is ridiculously tall. For

相关标签:
4条回答
  • 2021-02-19 19:45

    I don't know if it makes a difference, but you could try using a title attribute directly on your div instead of setting it in code:

    <div id="dialog-form" title="Dialog Title" style="display:none;">
       ...
    </div>
    

    It could be that you have a cascading style issue. I use Chrome's developer tools to track these kinds of issues down. You can isolate the title element generated by jQuery-ui and examine the classes that it has inherited.

    0 讨论(0)
  • 2021-02-19 19:48

    You can always style it with:

    .ui-dialog .ui-dialog-titlebar 
    {
        height: 40px; /* or whatever you want */
    }
    

    I would add that I tested FF4.01 and Chrome 11 and your code works for me, see working jsFiddle demo.

    0 讨论(0)
  • 2021-02-19 19:52

    Add this :

    position:absolute;
    overflow:hidden
    

    to class .ui-dialog :)

    0 讨论(0)
  • 2021-02-19 19:54

    Just add the below attribute to the dialog's parent class, to solve this dialog header issue

    .ui-dialog { clear: both; }
    
    0 讨论(0)
提交回复
热议问题