小编All*_*lan的帖子

Best_in_place标签槽

我正在使用best_in_place gem,因此我可以在索引视图中编辑多个学生.

但问题是,可用性很差.我必须单击,键入信息,输入/单击并再次单击以编辑其他信息.

这是一种我可以按Tab键去田野的方式吗?

这是索引的代码:

<% @students.each do |student| %>
   <tr>
   <td><%= link_to .name, edit_student_path(student) %></td>
   <td><%= best_in_place student, :oral %></td>
   <td><%= best_in_place student, :writing %></td>
   <td><%= best_in_place student, :participation %></td>
   <td><%= best_in_place student, :grammar %></td>
   <td><%= best_in_place student, :presence, type: :select, collection: [["Present", "Present"], ["Absent", "Absent"], ["", "-"]] %></td>
   </tr>
<% end %>
Run Code Online (Sandbox Code Playgroud)

我发现了这个:https://github.com/bernat/best_in_place/tree/master/lib/best_in_place

好.这就是我现在得到的,但仍然没有工作:/任何想法?

指数:

 <td><%= best_in_place allan, :oral, :html_attrs => {:tabindex => 10} %></td>
 <td><%= best_in_place allan, :writing, :html_attrs => {:tabindex => 11} %></td> …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails best-in-place

3
推荐指数
1
解决办法
1115
查看次数

移动设备上 Iframe 内的响应式网站

我很难弄清楚这一点。我有一个负责任的网站,我试图通过 Iframe 调用它。它在桌面上运行得很好,但在移动设备上似乎太少了。

<iframe src="https://religious-freedom.herokuapp.com"></iframe>
Run Code Online (Sandbox Code Playgroud)

CSS

            iframe:focus {
            outline: none;
        }
        iframe {
            margin: none;
            border: 0;
            width: 100%;
            height: 100%;
            position: absolute;
            display: block;
        }


        body {
            display: block;
            margin: 0;
            -webkit-overflow-scrolling: touch;
        }
Run Code Online (Sandbox Code Playgroud)

html css iframe mobile

2
推荐指数
1
解决办法
7451
查看次数

我可以在不同计算机之间共享的文件夹中使用 git 还是应该将项目克隆到不同的文件夹中?

我使用 Onedrive 在台式机和笔记本电脑之间同步文件。我主要在笔记本电脑上工作,但我将开始更多地在家工作。我可以进入该文件夹并开始提交更改,还是应该克隆该文件夹,因为我位于另一台计算机上?

git onedrive

2
推荐指数
1
解决办法
1422
查看次数

标签 统计

best-in-place ×1

css ×1

git ×1

html ×1

iframe ×1

mobile ×1

onedrive ×1

ruby-on-rails ×1