联系页面在 Google Chrome 浏览器中无法正确显示

发布于 2024-08-20 20:33:55 字数 3346 浏览 4 评论 0原文

我有一个使用 JQuery 滚动的单页投资组合样式网站,但我无法在 Google Chrome 浏览器中完全显示“联系方式”页面。它在 IE、Safari 和 Firefox 中运行良好,但在 Chrome 中则不然。我已附上“联系”页面的代码,看看是否有人可以看到问题所在。要查看该网站并查看问题,请转至 http://www.verticalministries.net/ 并导航到“联系方式”页面。

<!-- CONTACT section --> 
  <div id="contact">
    <a name="contact"></a>
    <img src="images/contact_txt.png" alt="Contact" title="Contact" class="contact_txt" />
    <div class="contact_info_bg">
        <div class="conact_info">
          <h1>CONTACT VERTICAL</h1>
          <p>We would love to hear from you. Please give us a call or email us using the form to the right with any questions, comments or concerns.</p>
          <p>
            <strong>Phone:</strong> 318-560-4346<br />      
            <strong>Email:</strong> [email protected]<br />
            <strong>Waco Hippodrome Address:</strong> 724 Austin Ave. Waco, <abbr title="Texas">TX</abbr><br />
            <strong>Mailing Address:</strong> 1901 S. 14th St., Waco, <abbr title="Texas">TX</abbr> 76706
          </p>
           <a href="http://maps.google.com/maps?sourceid=chrome&um=1&ie=UTF-8&q=waco+hippodrome&fb=1&gl=us&hq=hippodrome&hnear=waco&cid=0,0,6382554904160266109&ei=0qcxS_3RJcmTnQfGgZWECQ&sa=X&oi=local_result&ct=image&resnum=1&ved=0CAgQnwIwAA" target="_blank"><img src="images/map.gif" alt="Location" title="Location" /></a>
        </div>            
    </div>
    <div class="contact_form">
        <h1>EMAIL VERTICAL MINISTRIES</h1>
        <form action="#" method="post" id="sendEmail">                      
          <p>
            <label>Name:</label>
            <input type="text" id="name" class="field" name="nume" />
          </p>
          <div class="clear"></div>
          <p>
            <label>E-mail:</label>
            <input type="text" id="email" class="field" name="email" />
          </p>
          <div class="clear"></div>

          <p>
            <label>Message:</label>
            <textarea class="field_textarea" rows="" cols="" id="message" name="message"></textarea>
          </p>                    
          <div class="clear"></div>

          <p>
            <label><?php echo $n1 . ' + ' . $n2; ?> = <br /> <font size="1">security purposes</font></label>          
            <input type="text" id="captcha" class="captcha_field" name="captcha" />
          </p>                    
          <div class="clear"></div>

          <p id="loading"><label>&nbsp;</label><input type="image" id="submit" src="images/send_btn.png" value="Send" /></p>
        </form>  
    </div>
  </div>             
</div>

预先感谢您的帮助。

I have a one-page portfolio style website that scrolls with JQuery, and I cannot get the "Contact" page to show up fully in the Google Chrome Browser. It works fine in IE, Safari, and Firefox, but not in Chrome. I have attached the code for the "Contact" page to see if someone can see what is wrong. To view the site and see the problem, go to http://www.verticalministries.net/ and navigate to the "Contact" page.

<!-- CONTACT section --> 
  <div id="contact">
    <a name="contact"></a>
    <img src="images/contact_txt.png" alt="Contact" title="Contact" class="contact_txt" />
    <div class="contact_info_bg">
        <div class="conact_info">
          <h1>CONTACT VERTICAL</h1>
          <p>We would love to hear from you. Please give us a call or email us using the form to the right with any questions, comments or concerns.</p>
          <p>
            <strong>Phone:</strong> 318-560-4346<br />      
            <strong>Email:</strong> [email protected]<br />
            <strong>Waco Hippodrome Address:</strong> 724 Austin Ave. Waco, <abbr title="Texas">TX</abbr><br />
            <strong>Mailing Address:</strong> 1901 S. 14th St., Waco, <abbr title="Texas">TX</abbr> 76706
          </p>
           <a href="http://maps.google.com/maps?sourceid=chrome&um=1&ie=UTF-8&q=waco+hippodrome&fb=1&gl=us&hq=hippodrome&hnear=waco&cid=0,0,6382554904160266109&ei=0qcxS_3RJcmTnQfGgZWECQ&sa=X&oi=local_result&ct=image&resnum=1&ved=0CAgQnwIwAA" target="_blank"><img src="images/map.gif" alt="Location" title="Location" /></a>
        </div>            
    </div>
    <div class="contact_form">
        <h1>EMAIL VERTICAL MINISTRIES</h1>
        <form action="#" method="post" id="sendEmail">                      
          <p>
            <label>Name:</label>
            <input type="text" id="name" class="field" name="nume" />
          </p>
          <div class="clear"></div>
          <p>
            <label>E-mail:</label>
            <input type="text" id="email" class="field" name="email" />
          </p>
          <div class="clear"></div>

          <p>
            <label>Message:</label>
            <textarea class="field_textarea" rows="" cols="" id="message" name="message"></textarea>
          </p>                    
          <div class="clear"></div>

          <p>
            <label><?php echo $n1 . ' + ' . $n2; ?> = <br /> <font size="1">security purposes</font></label>          
            <input type="text" id="captcha" class="captcha_field" name="captcha" />
          </p>                    
          <div class="clear"></div>

          <p id="loading"><label> </label><input type="image" id="submit" src="images/send_btn.png" value="Send" /></p>
        </form>  
    </div>
  </div>             
</div>

Thank you in advance for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

惟欲睡 2024-08-27 20:33:55

您的页面在完成滚动到视图之前就耗尽了内容...它滚动到 #content 底部与页面底部匹配的位置。

您可以在可滚动对象中添加填充(可能会影响其他浏览器),或者进行简单但有争议的 hacky CSS 修复:

#contact { padding-bottom: 2000px; }

这将为其下方提供空间,可以充当 #content 底部和 #content 底部之间的缓冲区。

Your page runs out of content before it finishes scrolling into view...it scrolls to where the bottom of #content matches the bottom of the page.

You can either add padding in the scrollable object (may affect other browsers), or for a simple yet debate-ably hacky CSS fix:

#contact { padding-bottom: 2000px; }

This will give it space below that can act as a buffer between the bottom of #content and the bottom of <html>

明媚殇 2024-08-27 20:33:55

您可能需要在 #contact div 上添加 vertical-align:top;

you might need to have vertical-align:top; on the #contact div.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文