donglun1918 2013-03-15 01:21
浏览 49
已采纳

我的网页下面的奇怪空间只有safari和chrome

I'm getting a blank space at the bottom of my contact page and I can't figure out why. It only happens in chrome and safari that i know of. http://tshirthideout.com/contact-us/

I don't think the problem is in my footer template because its only on the contact page. so here is my code for the content on the page.

<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */

get_header(); ?>


<div style="position: relative; top: -35px; left: 3px; display: block;margin-bottom: 40px;">

    <div id="ribbon"><span style="padding-left: 11px; color: #fff;
        text-shadow: 1px 1px 0px #c1c1c1,2px 2px 0px #c1c1c1;
        font-size: 30px;font-family:'Century Gothic',futura,'URW Gothic L',Verdana,sans-serif;
        text-transform: uppercase;"><strong><h1 style="position: absolute; top: 0px; left: 11px;"><?php the_title(); ?></h1></strong></span></div>
<div style="right: 5px; top: 48px; position: absolute; display: block;"><form class="widget-area" role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    <div><label class="screen-reader-text" for="s">Search for:</label>
        <input type="text" value="" name="s" id="s" />
        <input type="submit" id="searchsubmit" value="" />
    </div>
</form></div>
</div>
    <div id="primary" class="site-content">
        <div id="content" role="main">

            <?php while ( have_posts() ) : the_post(); ?>
                <?php get_template_part( 'content', 'page' ); ?>

            <?php endwhile; // end of the loop. ?>

        </div><!-- #content -->
    </div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
  • 写回答

2条回答 默认 最新

  • dongyan3018 2013-03-15 01:32
    关注

    you should add Display:block to the iframe

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程