好的,我得到了这个简单的html代码
This is the text <a href="javascript:window.open('abc.html','width=500,height=350')">
<img src="http://www.clipartbest.com/cliparts/9iz/Gaj/9izGaj9iE.gif"
alt="show" height="15" width="15" /></a>
我希望当用户单击图像时它将显示为以下图片:
我不喜欢JQuery的东西,所以
您可以使用简单的JavaScript代码来做到吗?尽可能少的代码?
最佳答案
否则,您可以使用Bootstrap软件包随附的popup.js
您可以从本网站下载
http://getbootstrap.com/
这应该为您工作。
如果您不知道引导程序,请在http://www.w3schools.com/bootstrap/default.asp上进行阅读