【发布时间】:2008-09-26 20:04:22
【问题描述】:
如果我将所选网页从 Firefox 拖放到 HTML-Kit,HTML-Kit 会询问我是要粘贴为文本还是 HTML。如果我选择“文本”,我会得到:
Version:0.9
StartHTML:00000147
EndHTML:00000516
StartFragment:00000181
EndFragment:00000480
SourceURL:http://en.wikipedia.org/wiki/Herodotus
<html><body>
<!--StartFragment-->Additional details have been garnered from the <i><a href="http://en.wikipedia.org/wiki/Suda" title="Suda">Suda</a></i>, an 11th-century encyclopaedia of the <a href="http://en.wikipedia.org/wiki/Byzantium" title="Byzantium">Byzantium</a> which likely took its information from traditional accounts.<!--EndFragment-->
</body>
</html>
According to MSDN,这是“CF_HTML”格式的剪贴板数据。在 OS X 和 Linux 系统上是否相同?
有没有办法在网页到网页的拖放操作中访问这种详细信息(而不仅仅是纯剪辑片段)? C# WinForms 桌面应用程序呢?
【问题讨论】:
标签: drag-and-drop clipboard copy-paste