为什么ruby form方法与我的CSS交互并使它显示单选按钮而不是星形符号?

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

由于某种原因,这段代码中的form使CSS停止显示星号,而是显示单选按钮。关于如何使用from来存储用户评分并显示星级评分系统的任何建议?

代码:

<div id="box_one">
      <p id="bookmark_name">Bookmark Name</p>
      <h2> <%= @title %></h2>
  </div> 

  <div id="boxtwo">
      <p id="bookmark_link">Bookmark Link</p>
      <a id="b_link" href="<%= @link %>"> <%= @link %> </a>
  </div>

  <div id="boxthree">
      <p id="bookmark_desc">Bookmark Description</p>
      <p id="b_desc"><%= @desc %></p>
  </div>

  <div id="boxfour">  
      <p id="bookmark_r">Bookmark Rating</p>
      <p id="b_rate"><%= erb :ratingBlock %></p>
  </div>

  <div id="boxfive">
      <p id="bookmark_c">Bookmark Comments</p>
      <p id="b_com">Comments</p>
  </div>

  <div id="boxsix">
  <form id="bigform" method ="get" action = "/bookmark/edit">
      <input type = "hidden" name = "bookmarkTitle" value = "<%=@title%>">
      <input type = "hidden" name = "bookmarkId" value = "<%=@id%>">
      <input type  = "hidden" name = "bookmarkDesc" value = "<%=@desc%>">
      <input type  = "hidden" name = "bookmarkLink" value = "<%=@link%>">
      <input type  = "hidden" name = "bookmarkRating" value = "<%=@rating%>">
     <input type = "submit" value = "Edit">
  </form>

  <form id="smallform" method ="post" action = "/bookmark/delete">
    <input type = "hidden" name = "currentBookmark" value = "<%=@id%>">
    <input type = "submit" value = "Delete">
  </form>
</div>

显示的图像:image

html css ruby-on-rails ruby sinatra
1个回答
0
投票

我相信您用于显示字段的方法未使用必要的CSS。也许您需要查看如何配置(如果是extern库)或更改方法]

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