Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 设置Wordpress联系人表单的样式_Css_Wordpress_Forms_Contact - Fatal编程技术网

Css 设置Wordpress联系人表单的样式

Css 设置Wordpress联系人表单的样式,css,wordpress,forms,contact,Css,Wordpress,Forms,Contact,我正在尝试为我的站点创建一个类似于此的联系人表单 我曾尝试使用Wordpress中的联系人表单7创建它,但我无法设置复选框的样式,使其与上面的复选框相似。我已经看到了许多样式化字段的解决方案,但我不能将其应用到单个复选框中——如果我可以对其进行样式化,则无线电选项似乎最适合于此 有没有人知道这种形式是否可以在联系人表格7中使用,或者是否有另一种联系人表格可以让我创建这种形式,因为我已经到处搜索,查看了联系人表格7上的所有文档,但没有找到解决方案 问候, Ciaran使用firebug搜索div

我正在尝试为我的站点创建一个类似于此的联系人表单

我曾尝试使用Wordpress中的联系人表单7创建它,但我无法设置复选框的样式,使其与上面的复选框相似。我已经看到了许多样式化字段的解决方案,但我不能将其应用到单个复选框中——如果我可以对其进行样式化,则无线电选项似乎最适合于此

有没有人知道这种形式是否可以在联系人表格7中使用,或者是否有另一种联系人表格可以让我创建这种形式,因为我已经到处搜索,查看了联系人表格7上的所有文档,但没有找到解决方案

问候,


Ciaran

使用firebug搜索div/类并在css中更改它?

只需编辑位于主题文件夹中的主题css文件(style.css),然后将以下内容添加到样式表的底部

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  background-color: #ffffff;
  border: 1px solid #cccccc;

}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  outline: thin dotted \9;
  /* IE6-9 */
}

注意:只需将焦点的颜色更改为您想要的颜色

更新2:
这里有一个更简单的解决方案:

Hi Disgeae感谢您的回复。我一直在尝试,但我遇到的问题是,复选框没有div或class,而且我似乎也无法对它们应用div或class。表单在本页底部[链接]请看这个问题:谢谢Disgeae,我应该能够从那里找到解决方案。干杯。嘿,灵巧的戴夫,谢谢你。它可以完美地设计文本区域的样式,但我似乎仍然无法设计复选框的样式。我可以给它们添加填充物等,把其他东西推离它们,但我不能改变它们的颜色或使它们变大或做任何事情。您知道为什么不可能更改复选框吗?