【发布时间】:2015-07-30 13:03:57
【问题描述】:
我对构建网站非常陌生,即。上周我从零开始自学。我设计了一个主题并通过 cpanel 将其上传到 Wordpress。该网站在 Chrome 中看起来很棒,但在 IE 中缺少我的提交按钮和表单,并且在 Firefox 中所有表格都完全错误。
谁能建议解决这个问题?
这是我的网站:http://bespokecook.co.uk/
网站内容不完整,因为它是针对朋友的新公司。
我真的很感谢任何建议......
<div id="content">
<table id="contactform">
<tr>
<td class="form" ROWSPAN="2">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('(more...)')); ?>
<?php endwhile; else: ?>
<?php _e('oops... Sorry this page cannot be found'); ?></p><?php endif; ?>
<form method="post" action="mailto:katy.wooff@bhwt.co.uk?Subject=Enquiry from bespokecook.co.uk" >
<input class="contactform" required="required" type="text" name="Your-name" placeholder="Your name*">
<input class="contactform" required="required" type="text" name="Your-surname" placeholder="Your surname*">
<input class="contactform" required="required" type="tel" name="Telephone" placeholder="Telephone*">
<input class="contactform" required="required" type="email" name="Email" placeholder="Email*">
<div id="scroll-bar"><textarea class="contactform" maxlength="2000" spellcheck="true" name="textarea" rows="15" cols="100" placeholder="Anything else you'd like to tell us?"></textarea></div>
<p>*This field is required</p>
<a href="http://bespokecook.co.uk/contact"><input align="left" value="Send Email" class="submit" type="submit" name="submit" value="SEND US YOUR PLANS"></a>
</td>
</form>
<td class="jim-no" ROWSPAN="2"></td>
<td class="sidebar-1"><a><img class="aligncenter" src="http://bespokecook.co.uk/wp-content/uploads/2015/05/IMG_7454.jpg" alt="" width="100%" /></a></td>
</tr>
<tr>
<td class="sidebar">
<h4>Telephone</h4>
<p>07754 626113</p>
<h4>Email</h4>
<a href="mailto:hello@bespokecook.co.uk?Subject=Enquiry from bespokecook.co.uk" target="_top"<p>hello@bespokecook.co.uk</p></a>
</td>
</tr>
</table>
</div>
【问题讨论】:
-
您应该发布似乎不适用于所有浏览器的代码
-
是的!我知道!也无法解决这个问题...
-
你能把
<form>和<input>一起发给提交按钮吗 -
这是
CSS代码?我的意思是html代码 -
那仍然是
CSS也许您的代码没有出现是因为您没有代码?你确实说过你上周才开始。您发布的这段代码不会在网页上输出任何东西,除了外观之外,CSS用于设置按钮/表单的样式。所以为了有一个表单或按钮,去观看一些HTML5视频.. 编辑:你更新了正确的代码
标签: wordpress forms firefox html-table submit