输入字段在视图中不可见(simple_form_for)

问题描述 投票:0回答:1

出于某种原因,当我加载视图页面时,我新创建的输入字段(描述和标题)不可见。当我检查检查器时,有一个CSS元素'display:none',但为什么它默认会隐藏元素呢?我的CSS文件中没有任何显示:none ...

<%= simple_form_for(@ad) do |f| %>
  <%= f.input :website %>
  <%= f.input :title %>
  <%= f.input :description %>
  <%= f.input :photo %>
  <%= f.input :photo_cache, as: :hidden %>
  <%= f.submit 'publish my ad!'%>
<% end %>
<%= link_to "home", root_path %>'
ruby-on-rails input simple-form-for
1个回答
0
投票

尝试了解该规则的应用位置

使用调试工具找出应用规则的css样式表。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.