jQueryUI dialog hides close (X) button if title contains right-aligned text. How can I fix this?
问题 I have the following code sample: <div id="dlgTest1" style="display: none"> <p> Lorem ipsum test popup dialog<br /> <br /> Click the OK button to resume activity. </p> </div> <script type="text/javascript"> $(document).ready(function () { var myTitle = "<div style='float: left'>LEFT TEXT</div><div style='float: right'>RIGHT TEXT</div>"; $("#dlgTest1").dialog({ title: '', // new jquery-ui-1.10.2 doesn't allow HTML here autoOpen: false, minWidth: 500, width: 500, minHeight: 200, height: 200,