【发布时间】:2011-10-18 14:27:03
【问题描述】:
没有什么不工作的。当我输入大文本表时,会出现向右深处并出现水平导航。
index.haml
%table{:border => 1, :width => "100%"}
%tr
%th{:width => "200"} Name
%th.edit Edit
- @wallpapers.each do |wallpaper|
%tr
%td.name= wallpaper.name
%td= link_to (image_tag wallpaper.thumb.url(:thumb)), edit_wallpaper_path(wallpaper)
%td= button_to 'Delete', wallpaper_path(wallpaper), :confirm => 'Are you sure you want to delete this wallpaper?', :method => :delete
style.css
th.edit {width:20%;}
td.name {width:20%;}
【问题讨论】:
标签: ruby-on-rails css ruby haml markup