IE中定制的wordpress页脚搞砸了

时间:2013-07-03 02:51:47

标签: wordpress internet-explorer footer

我为wordpress制作了一个自定义的页脚。出于某种原因,在Internet Explorer中,页脚全部搞砸了。我看过firefox,safari和chrome中的页脚,它们都运行良好。它只是互联网浏览器。下面是我用来制作页脚的代码。

这是我在funtions.php中输入的代码

register_sidebar(array(
'name' => 'Footer Widget 1',
'id'        => 'footer-1',
'description' => 'First footer widget area',
'before_widget' => '<div id="footer-widget1">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));

register_sidebar(array(
'name' => 'Footer Widget 2',
'id'        => 'footer-2',
'description' => 'Second footer widget area',
'before_widget' => '<div id="footer-widget2">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));

register_sidebar(array(
'name' => 'Footer Widget 3',
'id'        => 'footer-3',
'description' => 'Third footer widget area',
'before_widget' => '<div id="footer-widget3">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));

这是我在footer.php中输入的代码

<div id="footer-widget1">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-1') ) : ?>
<?php endif; ?>
</div>

<div id="footer-widget2">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-2') ) : ?>
<?php endif; ?>
</div>

<div id="footer-widget3">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-3') ) : ?>
<?php endif; ?>
</div>
</div>
<div style="clear-both"></div>

这是我在stylesheet.css中的代码

#footer-widgets {
display: block;
width:950px;
margin-right:0;
background: #;
}
#footer-widget1 {
width: 260px;
float: left;
margin: -48px 0px -0px 0px;
padding: 10px;
background-color: ;
}
#footer-widget2 {
width: 260px;
float: left;
margin: -35px 0px -0px -45px;
padding:10px;
background-color: ;
}
#footer-widget3 {
width: 260px;
float: left;
margin: -60px 0px -0px -18px;
padding:10px;
background-color: ;
}

这是第一个小部件的代码......

<a href="http://www.pastorsdigitalbooks.com"target="_blank"> <img src="http://nzbound.kiwi.nz  /website/wp-content/uploads/2013/05/logo-500x500.png";width="165" height="165"; /> </a>

第二个小部件

<P ALIGN="center"><B>Sent from: Bible Baptist Church</B>
<br>
3500 Beaver Dam Rd
<br>
West Bend, WI 53095 
<br>
Pastor Steve Gorton </P>

和第三个

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8C4CEKYFFJQR4">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"width="125"; height="40">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Donations directly given
<br>
 are not tax deductible

如果你能帮助我,我会非常感激

0 个答案:

没有答案