开发者

Can you drag and drop a URL with a large icon/graphic from a web page to you desktop?

Is there anyway to create a desktop icon (cross platform/browser) from a linked image on a page without some kind of executable?

<a href="http://www.example.com"><img src="nice开发者_JAVA技巧_icon.png" /></a>


Not cross-platform, no, but most browsers support this out of the box. At least Firefox and IE do this no problem on Windows: When you drag-and-drop a link, a .lnk file is created on the desktop. I assume it's the same for Mac. For Linux, I don't know but I could imagine this works with the more modern graphical desktops as well.

There is no way to reliably enforce this across browsers, see this question (answered by yours truly)

Try it out!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜