简体   繁体   English

如何设置联系表格 7 的样式,然后在滑块旋转中使用短代码

[英]How can I style my contact form 7 and then use the shortcode in slider revolution

I have a contact form 7 form that I want to add to my slider revolution header using the shortcode.我有一个联系表格 7 表格,我想使用短代码将其添加到我的滑块旋转标题中。 How would I be able to style my form with CSS so that it changes when I use the shortcode for it?我如何能够使用 CSS 设置我的表单样式,以便在我使用短代码时它会发生变化? Are there any other options for me to use custom CSS forms with shortcode?我还有其他选择可以使用带有短代码的自定义 CSS 表单吗?

What I have tried doing is customizing the form in elementor but those styles do not change the form when the shortcode is used, it only updates on the elementor page.我尝试做的是在 elementor 中自定义表单,但这些样式在使用简码时不会更改表单,它只会在 elementor 页面上更新。

Try using the inspect element of the browser, example on Chrome, right click an element you want to check then click inspect element then try to find for a unique class name for each field or you may try to find the "form" tag and get it's class name usually it looks something like this cf7 inspect element尝试使用浏览器的检查元素,例如在 Chrome 上,右键单击要检查的元素,然后单击检查元素,然后尝试为每个字段查找唯一的类名,或者您可以尝试查找“表单”标签并获取它的类名通常看起来像这个cf7 检查元素

here's an example css lines to change the style of all the input fields and the button这是一个示例 css 行,用于更改所有输入字段和按钮的样式

form.wpcf7-form input {border:1px solid #ff0000;} form.wpcf7-form input[type="submit"] {background: #ff0000;} form.wpcf7-form input {border:1px solid #ff0000;} form.wpcf7-form input[type="submit"] {background: #ff0000;}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM