Fix postbox layout for IE. Props hansengel. fixes #5812

git-svn-id: https://develop.svn.wordpress.org/trunk@6857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-15 06:46:54 +00:00
parent 3d4e02b1df
commit 8f31db9af4
2 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,10 @@ get_admin_page_title();
wp_admin_css( 'css/global' ); wp_admin_css( 'css/global' );
wp_admin_css(); wp_admin_css();
?> ?>
<!--[if gte IE 6]>
<?php wp_admin_css( 'css/ie' );
?>
<!endif-->
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
addLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})();//]]> addLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})();//]]>

5
wp-admin/css/ie.css Normal file
View File

@ -0,0 +1,5 @@
/* Fixes for IE bugs */
#poststuff .postbox h3 {
padding-left: 23px;
}