我不小心隐藏了为我的网站页脚创建的重力表单的字段,我认为这是在我添加 CSScode 以减少表单字段之间的间距时发生的。
请问我该如何撤销,因为我只能看到提交按钮和表单小部件标题。
Here's a link to the website if needed.
这里还有一个页脚小部件的屏幕截图:
谢谢
body .gform_wrapper ul li.gfield {
margin-top: 0px !important;
padding-top: 0;
}
.block-content ul li {
margin-bottom: 0 !important;
margin-top: 0 !important;
}
.gform_body ul li .ginput_container select,.gform_body ul li .ginput_container input{
margin-bottom: 0px;
}
.gform_wrapper .top_label .gfield_label {
display: none !important;
}
最佳答案
由于样式表中的不同规则,您的字段被隐藏了。
检查您网站上的网络元素向我展示了这一点:
style.css 中的第 159 行
.gform_wrapper.two-column_wrapper ul.gform_fields, .gform_wrapper.two-column_wrapper ul.gform_column li.gsection:first-child {
display: none;
}
您的第一个声明:.gform_wrapper.two-column_wrapper ul.gform_fields
是重力表单中表单字段的父容器。删除它(当然还有分隔 2 个声明的逗号)将解决此问题。
出于详细目的,该行代码将变为:
.gform_wrapper.two-column_wrapper ul.gform_column li.gsection:first-child {
display: none;
}
我在 Firefox 中用 Firebug 测试了这个并显示:
关于wordpress - 缺少重力表单字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39554535/