简体   繁体   English

有没有一种简单的方法来选择和复制HTML表的1或2列?

[英]Is there a simple way to select and copy 1 or 2 columns of an HTML table?

I've heard that there's a button you can hold to drag a selection of a table column in Firefox, but I'm looking for a cross-browser answer. 我听说你可以按住一个按钮来拖动Firefox中的一个表格列,但我正在寻找一个跨浏览器的答案。 I'm wondering if maybe I can put radio buttons above the columns, have the visitor select them, then, on the click of a button, have the columns copied to their clipboard. 我想知道是否可以将单选按钮放在列上方,让访问者选择它们,然后,单击按钮,将列复制到剪贴板。 I'm sure many have come across this problem; 我相信很多人都遇到了这个问题。 anyone with a good solution? 谁有一个很好的解决方案?

You can't reliably set the clipboard from HTML cross browser. 您无法从HTML跨浏览器可靠地设置剪贴板。 Flash can do it though. Flash可以做到。

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/System.html#setClipboard%28%29 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/System.html#setClipboard%28%29

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM