wordpress 如何在联系表单 7 提交按钮上添加多个类

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/42527290/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 11:17:19  来源:igfitidea点击:

How to multiple class add on contact form 7 submit button

wordpresscontact-form-7

提问by S. M. Momin

When i add bootstrap button class, like..

当我添加引导按钮类时,比如..

[submit class:btn btn-main btn-lg "Send"]

on browser i see it show only one class add.

在浏览器上我看到它只显示一个类添加。

<input class="wpcf7-form-control wpcf7-submit btn" >

I need others 2 class add also Help Me..

我需要其他 2 类添加也帮助我..

回答by Moris.io

If I remember correctly, you need to add the class attribute to each one.

如果我没记错的话,您需要为每个属性添加 class 属性。

Try this instead:

试试这个:

[submit class:btn class:btn-main class:btn-lg "Send"]

回答by Vishnja

Also CF7 used to have bug: if you put "class:" after "Send" nothing is added.

CF7 也曾经有错误:如果你在“发送”之后加上“类:”,则不会添加任何内容。

回答by Jennifer Smith

Have also just discovered if you put classes after a placeholder it doesn't work for some reason but putting it before does:

还刚刚发现,如果您将类放在占位符之后,由于某种原因它不起作用,但将它放在前面会起作用:

[text* your-name class:ast-col-xs-12 class:ast-col-sm-12 class:ast-col-md-6 class:ast-col-lg-6 placeholder "e.g. Joe Bloggs"]