我为要添加到使用 Refinery CMS 的应用程序中的“产品”创建了一个控制器。
这里是页面的代码show.html.erb
<div>
<h3>Feedback Sought</h3>
<p>
<%=raw @product.description %>
</p>
</div>
但这是在实时页面中实际产生的。
与此同时,我可以通过定位元素来实现去除边距的挖掘技巧,比如
.productFeedbackDescription p { margin: 0; }
然后按照以下方式进行内联css
<p style="margin-bottom: 12px;">
<%=raw @product.description %>
</p>