在调整大小/突出显示之前,Div不会出现

时间:2016-03-16 21:29:25

标签: javascript jquery html css

这实际上是我在网页设计生涯中遇到过的最奇怪的事情......出于某种原因,在Chrome中,我的网页底部不会显示,除非我:

  1. 突出显示任何网页
  2. 调整窗口大小
  3. 向上和向下滚动几次
  4. 我使用2个div来存放网页中的所有内容,一个<form id="contactform" action="contact_form.php" method="POST"> <div> <input type="text" class="form-control" placeholder="Name" name="name" required id="name"> </div> <div> <input type="email" class="form-control" placeholder="Email" name="email" required id="email"> </div> <div> <input type="text" class="form-control" placeholder="Phone" required name="phone" id="phone"> </div> <textarea class="form-control" name="message" id="message" rows="4" placeholder="Enter Your Message" required></textarea> <div class="text-center"> <button type="submit" value="submit" class="btn btn-default">SUBMIT</button> </div> </form> 在2秒后消失,一个消退后2秒(这是您在加载页面时看到的效果)。

    出于某种原因,当我删除第二个<?php if(isset($_POST['submit'])){ $to = "xyz@abc.com"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $name = $_POST['name']; $phone = $_POST['phone']; $subject = "Form submission"; $subject2 = "Copy of your form submission"; $message = "Name:". $name . "\n" . "Phone:" . $phone . "\n" . "\n" . "Message:" . "\n" . $_POST['message']; $message2 = "Here is a copy of your message " . "\n" . "Name:" . $name . "\n" . "Phone:" . $phone . "\n" . "\n" . "Message:" . "\n" . $_POST['message']; $headers = "From:" . $from; $headers2 = "From:" . $to; mail($to,$subject,$message,$headers); mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender echo "Mail Sent. Thank you, " . $name . ", we will contact you shortly."; // You can also use header('Location: thank_you.php'); to redirect to another page. // You cannot use header and echo together. It's one or the other. } ?> 时,问题不会发生。这是网站,如果有任何其他信息我可以提供给你,请告诉我!非常感谢任何帮助。

    http://committee-of-taste.co.uk/test/index.html

1 个答案:

答案 0 :(得分:0)

照片下方有什么意思吗?如果没有,它对我来说在Chrome中运行良好。也许你可以分享你所看到的截图?