0

我为 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

如果你能帮助我,我将不胜感激

4

0 回答 0