无法查看表格标题中的链接
我正在尝试将表的标题之一更改为链接,以便用户可以对该列进行排序(按照 这个railscast 问题是,我的专栏标题中没有显示任何内容。大概这是一些 CSS 问题/背景颜色的问题,但我仍然有点太绿了,无法弄清楚。
这是我的标题(sortable 是我的助手中返回 link_to 的方法):
<table class="standard-grid mtm">
<tr>
<th class="first"> <input type="checkbox" id="selectAll" value="selectAll"> All<br/><br/> </th>
<th>ID</th>
<th>Customer</th>
<th>Resume URL</th>
<th>Partner</th>
<th>Status</th>
<th>Assigned To</th>
<th>Comments</th>
<th>Sent To</th>
<th> <% sortable "date_email_delivered", "Sent On" %> </th>
</tr>
...
</table
这是(大概)相关的 css(在 application.css 中):
.standard-grid
width: 100%
border-left: 1px solid #676D6F
border-top: 1px solid #676D6F
th, td
border-right: 1px solid #676D6F
border-bottom: 1px solid #676D6F
padding: 10px
min-width: 70px
th
background: #505155 image-url("nav-tabs/tab.gif") bottom left repeat-x
color: #fff
font-weight: bold
a
color: #aaa
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为我在 Rails 3 工作
应该是:
since i'm working in rails 3
should be: