<html>
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=UTF-8">
<script type="text/javascript" src=js/jquery.js></script>
<script type="text/javascript" src=js/jquery.blockUI.js></script>
<script>
function showPropWindow() {
$.blockUI({
message : '<div><img src="1.png" /></div>',
css : {
cursor : 'auto'
}
})
}
</script>
<title>图片展示</title>
</head>
<body>
<div style="cursor: pointer">
<img onclick="showPropWindow()" src="1.png" style="width:100pxheight:100px"/>
</div>
</body>
</html>
你试试,记得把jquery.js和jquery.blockUI.js这两个js导入,如果你那里没有这两个js,去网上下一个