我正在为一个wordpress页面创建一个自定义表单,使用Contact表单7插件:http://dentclaims.com/contact,单选按钮和复选框出现在单独的行中。我使用的方法如下:
Tesseract Wordpress主题v2.1 - Wordpress v4.3.1 - Chrome for Mac版本46.0.2490.80 (64位)
下面是CF7表单中的代码:
<p>This appointment is for*: [text* patient-name] </p><br />
<p>Requested by: [text your-name] </p>
Your email*: [email* your-email]
<p>Your telephone number*: [tel* your-tel] </p>
<p>Preferred date (select up to three)
First choice: [date date-first] Second choice choice: [date date-second] Third choice: [date date-third] </p>
Preferred time:[radio radio-time "Any time" "10:00am-Noon" "Noon-2:00pm" "2:00pm-5:00pm"]
<p>Reason for your visit: [checkbox checkbox-reason "Exam and cleaning" "Consultation" "Previously discussed treatment" "Other"]</p>
<p>Notes for the doctor:<br />
[textarea textarea-notes]</p>
<p>[submit "Request Appointment"]</p>主题的CSS中有两个对.wpcf7类的引用:
这里:
.wpcf7-submit{
float: left;
clear: both;
margin-bottom: 20px;在这里:
/* CONTACT FORM 7 */
.wpcf7-form-control-wrap { width: 50%; }无论我如何安排形式元素,它们仍然渲染不当。有人能提出解决办法吗?另一个要检查的CSS文件?N00b在这里,所以挣扎到哪里去寻找解决方案。
发布于 2015-11-12 18:24:30
您的CSS中有一行代码使所有span元素的宽度都达到100%:
#content form span {
width: 100%;
}使之不那么模棱两可,以免影响无线电选项标签。
https://stackoverflow.com/questions/33678218
复制相似问题