Floating Too Far Right

后端 未结 4 1052
梦谈多话
梦谈多话 2020-12-22 02:34

I\'ve got a record management web application which displays a master record on one screen and AJAXes dynamically built editors into an editor div, which I\'ve used JQuery t

相关标签:
4条回答
  • 2020-12-22 03:01

    For the record, what worked to fix this was changing the CSS for closebutton from

    float: right;
    

    to

    position: absolute;
    right: 5px;
    text-align: right;
    

    This produces proper results in IE, and with a little padding for the internal form fields there's no worry about overlap.

    0 讨论(0)
  • 2020-12-22 03:07

    for IE specific css hacks you can do something like:

    #divId {    
       margin-right: 0; /*Normal styles for all browsers*/    
      *margin-right: 100px; /*The asterisk allows only for IE6 AND IE7 to read this*/        
      _margin-right: 90px; /*The underscore allows only IE6 to read this style*/    
    }
    

    Just make sure the asterisk and underscore hacks are placed after the normal (valid) css style.

    0 讨论(0)
  • 2020-12-22 03:11

    CSS hacks are needed sometimes:

    * + html #editor #closebutton /* IE7 */, * html #editor #closebutton /* IE6 */ {margin-right: 100px;} // insert whatever value that fits here
    
    0 讨论(0)
  • 2020-12-22 03:19

    You may want to consider just using a JQuery Dialog instead since its premade and the styles already work cross platform.

    0 讨论(0)
提交回复
热议问题