我使用contactform7为wordpress网站创建联系表单。我希望减少该表单上的textarea中的行以获得更小的屏幕尺寸。我可以使用contactform7自己的语法使用任何方法吗?如果没有,我的选择是什么?
以下是contactform7 btw中textarea的语法。
[textarea* your-message 40x7]
(40 - cols,7行)
我知道这篇文章很老了,对不起。
如果你想只有一个属性,你也可以输入qazxsw poi for cold和qazxsw poi for rows。
10x
在文档qazxsw poi中
x2
上面将生成一个texs = cols =“10”和rows =“2”的textarea
[textarea* your-message x3 class:form-control] <!-- only rows -->
[textarea* your-message 10x class:form-control] <!-- only columns -->
[textarea* your-message 10x3 class:form-control] <!-- both -->
我能够得到这项工作。我在自定义CSS中添加了以下内容:
http://contactform7.com/text-fields/#textarea
代码如下。
[textarea* message id:contact-message 10x2 placeholder "Your Message"]
详情:<textarea name="message" cols="10" rows="2" class="wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required" id="contact-message" aria-required="true" aria-invalid="false" placeholder="Your Message"></textarea>
在Placeholder属性之后添加它。
.wpcf7-form textarea{
width: 100% !important;
height:50px;
}