Contactform 7中的占位符-Wordpress [英] Placeholder in Contactform 7 - Wordpress

查看:55
本文介绍了Contactform 7中的占位符-Wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的客户建立一个网站,但是我遇到了问题。
我已经使用Contact Form 7在wordpress中创建了一个联系表单。该插件非常易于使用,但是当我想使用该插件的占位符属性时,在加载页面时它没有显示占位符。 / p>

这是我在Contactform 7中设置占位符的方式

  [text *您姓名的占位符名称] 

占位符标记对我的textarea很好,但不能使用上面的文本框。
有人可以向我解释我在这里做错什么吗?



编辑



当我使用Google Chrome浏览器检查元素并检查文本框时,它说它具有占位符。

解决方案

如果有人对此有疑问,可能是您正在使用class:或id:属性。



当我在所有这些位置之后的之后添加占位符时,它对我有用:

  [通过电子邮件发送*您的电子邮件ID:您的电子邮件类别:表单控制占位符例如Jon.Smith@email.com] 


I am making a website for a client of me but im running into a problem. I've made a contact form in wordpress using Contact Form 7. This plugin is really easy to use but when i wanted to use the placeholder property of the plugin it did not show the placeholder when i loaded the page.

This is how i set the placeholder in Contactform 7

[text* your-name placeholder "Name"]

The placeholder tag works just fine for my textarea but it doesnt work with the textbox above. Can someone explain to me what i am doeing wrong here?

EDIT

When i inspect the element with Google Chrome and inspect the textbox it says that it has a placeholder. But it doesnt show the placeholder.

解决方案

If anyone is having trouble with this, it could be that you're using class: or id: attributes.

It worked for me when I added placeholder after all those:

[email* your-email id:your-email class:form-control placeholder "ex. Jon.Smith@email.com"]

这篇关于Contactform 7中的占位符-Wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆