发新话题
打印

blog底部错位,怎么回事啊?

blog底部错位,怎么回事啊?

如题
谢谢

http://www.itansy.cn/

帮忙看看是什么原因吧

TOP

footer 跑到 sidebar里面去了 你可能改哪个文件了吧?
参与编写WordPress中文文档 | 为WordPress贡献你的力量!

TOP

我就改了sidebar.php和footer.php两个

可以帮我看看吗


        <div id="sidebar">
                <ul>
               




                        <li>
                        <?php /* If this is a 404 page */ if (is_404()) { ?>
                        <?php /* If this is a category archive */ } elseif (is_category()) { ?>
                        <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
                       
                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
                        for the day <?php the_time('l, F jS, Y'); ?>.</p>
                       
                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
                        for <?php the_time('F, Y'); ?>.</p>

      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
                        for the year <?php the_time('Y'); ?>.</p>
                       
                 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
                        <p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
                        for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>

                        <?php } ?>
                        </li>
                       
                        <?php
                        // Remove the comments and php tags around this to add an image of you
                        /*
                        <li><h2>About</h2>
                        <p class="about"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/blue_flower/my_photo.jpg" alt="Me" />
                        <br />
                                <a href="mailto:my@email" title="Email me">
                                        <img src="<?php bloginfo('stylesheet_directory'); ?>/images/blog/figure_ver1.gif" alt="" /> <b>My Name</b>
                                </a>
                                <br />
                                This is my personal blog about anything that interests me...
                        </p>
                        </li>       
                        */ ?>               
                       

                        <li><h2>Archives</h2>
                                <ul>
                                <?php wp_get_archives('type=monthly'); ?>
                                </ul>
                        </li>

                        <li><h2>Categories</h2>
                                <ul>
                                <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
                                </ul>
                        </li>

                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>                               
                                <li><h2>recent posts</h2>
                                <ul>
                                <?php get_recent_posts($no_posts = 10); ?>
                                </ul>
                         </li>

                                <li><h2>recent comments</h2>
                                <ul>
                                <?php get_recent_comments(); ?>
                                </ul>
                         </li>

                                <?php get_links_list(); ?>
                               
                                <li><h2>Meta</h2>
                                <ul>
                                        <?php wp_register(); ?>
                                        <li><?php wp_loginout(); ?></li>
                                        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
                                        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
                                        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
                                        <li><a href="http://www.vault9.net" title="Vault 9">Vault9</a></li>
                                        <?php wp_meta(); ?>
                                </ul>
                                </li>
                        <?php } ?>
                       
                </ul>

——————————————————————————————————————


<div id="footer">
        <p>
                This theme, <?php bloginfo('name'); ?>, was designed
                 by Blogah and makes use of code/images by: Michael Heilemann, Kevin Potts
                <br />WordPress generated this page with <?php echo $wpdb->num_queries; ?> queries, in <?php timer_stop(1); ?> seconds.<script language="javascript" src="http://count37.51yes.com/click.aspx?id=373775963&logo=12"></script>

        </p>
</div>

</div>

                <?php wp_footer(); ?>

</body>
</html>

TOP

是否对浮动元素进行了clearfix?
用Google搜索 “clearfix css float”
我相信你能找到很多有用的资料。
aw

TOP

还是一头雾水
帮我看看是什么原因吧
谢谢

TOP

我觉得应该是CSS动了才对,sidebar.php和footer.php跟页面布局没关系吧?

TOP

好像是 sidebar.php最后少了一个 </div>
参与编写WordPress中文文档 | 为WordPress贡献你的力量!

TOP

谢谢大家。。。

TOP

发新话题