由于某种原因,这段代码中的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
我相信您用于显示字段的方法未使用必要的CSS。也许您需要查看如何配置(如果是extern库)或更改方法]