我在用作搜索框的 text_field_tag 中使用以下选项。我想更改 text_field 标签的宽度和高度。
<%= text_field_tag(:search, value = nil, options = {:size => "200", :placeholder => "Search Events", :class => "round shadow"})%>
除了尺寸之外,我能够获得所有想要的效果。据我所知语法是正确的。我也在使用 bluprint.css。只是为了确保我注释掉了蓝图 css textarea 默认选项。
/*textarea {width:390px;height:250px;padding:5px;}*/
可能是什么问题?