Javascript,Firefox:如何禁用浏览器特定的单元格控件? [英] Javascript, Firefox: how to disable the browser specific cell controls?

查看:155
本文介绍了Javascript,Firefox:如何禁用浏览器特定的单元格控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Firefox中:当光标放在表格单元格中时,浏览器将显示4个控件(每个单元格边框的中间一个)。 (内容处于可编辑模式)如何禁用?



在此先感谢您。如果你的意思是你在可编辑表上得到的控制,你可以使用下面的命令来禁用这些控制。它在最近的Firefox中起作用,至少:

  document.execCommand(enableInlineTableEditing,null,false); 


In Firefox: when placing the cursor into a table cell the browser will display 4 controls (one in the mid of each cell border). (The content is in editable mode.) How can those be disabled?

Thanks in advance.

解决方案

If you mean the controls you get on editable tables, you can disable these with the following command. It works in recent Firefox, at least:

document.execCommand("enableInlineTableEditing", null, false);

这篇关于Javascript,Firefox:如何禁用浏览器特定的单元格控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆