0
我在轨道上使用红宝石,我有一个文本框,两个下拉字段和一个文本区域的窗体。标签应带我到提交按钮,但它不是
在输入标题后的chrome中,我可以点击tab(不是鼠标)去下一个字段。我可以一路完成,我可以去提交按钮,然后取消。
但是,在Firefox中,文本字段中的选项卡将我带到下一个文本区域。它跳过中间的选择框。另外,下一个标签会将我带到顶部的导航网址栏,它完全跳过了“提交”按钮。
这是我的视图代码。这是在哈姆,但你明白了。
= form_for(note, {:html => {:class => 'note record'}}) do |f|
= hidden_field_tag(:page_id, @page.altid)
%table.form{:cellspacing => 5,:cellpadding => 5}
%tr
%th Title
%td= f.text_field :title
%td.col3= f.select :title_font_size
%tr
%th Body
%td
= f.text_area :note_body
%td.col3
= f.select :note_body_converter, %w(Basic Markdown)
%tr.submit
%th
%td{:style => 'width:500px;'}
.buttons
= f.submit 'Add this note', :class => 'psubmit'
or
= link_to 'Cancel', '#', :class => 'cancel'
事件Shift Tab键或TAB键的话是不是在mac + firefox中工作,即使doc说它应该工作。 – 2010-10-27 12:43:45
FF应该确实将默认行为更改为与chrome相同。 – 2010-10-27 12:44:27
是的,我除了测试以外不再使用。在速度方面,IE甚至在FF IMO之上,所以我通常在safari或chrome上。 – s84 2010-10-27 13:14:15