【发布时间】:2014-06-11 16:00:52
【问题描述】:
我将 Foundation 用于我的 Rails 表单并使用说明:http://foundation.zurb.com/docs/components/forms.html
我无法显示占位符文本。
我的查看代码:
<div class="field">
<h2>Personal Information</h2>
<%= f.label :full_name %><br>
<%= f.text_field :full_name, placeholder="Please enter first last and initial."%>
</div>
【问题讨论】:
-
你应该这样做
placeholder:而不是placeholder=
标签: css ruby-on-rails ruby forms