Javascript网站预览? [英] Javascript website preview?

查看:102
本文介绍了Javascript网站预览?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您发布链接时,我可以在类似于Facebook的链接上进行网站预览吗?图片和简短说明

can i do a website preview on a link similar to facebook when you post a link? with image and short description

推荐答案

我们大概一个月前就去了这里,有几个网站你可以发布一个网址,它会创建一个可以链接到的图像。虽然它需要时间,所以没用。

we had a go at this about a month ago and there are a couple of sites that you can post a url to and it'll create an image that you can link to. though it takes time so it's not useful.

然后我们用iframe创建了一个小工具提示,并将网站放在iframe中。你可以告诉框架大小的内容,所以效果是你有一个小版本的网站。

we then created a small tooltip with an iframe and put the site within the iframe. you can tell the frame to size the contents so the effect was that you got a small version of the site.

明显的问题,我们没有立即看到,是工具提示内容是可点击的。 :)但是如果你在离开链接时清除了工具提示,那么用户应该无法访问它。

the obvious problem, that we didn't see immediately, was that the tooltip contents were clickable. :) But if you clear the tooltip as you move off the link then the user should not be able to get to it.

这篇关于Javascript网站预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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