首页 > 代码库 > 实现点击图片放大效果

实现点击图片放大效果

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
<!--?编辑器的编码环境要与字符的编码环境要一样,告诉浏览器使用当前的编码方式来解析这个网页文件 -->
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>相册效果</title>
    <meta name="keywords" content="关键字列表" />
    <meta name="description" content="网页描述" />
    <link rel="stylesheet" type="text/css" href="" />
    <style type="text/css"></style>
    <script type="text/javascript"></script>
</head>
<body>
    <h1 align="center">公司相册展示效果图</h1>
<div align="center">
    <a href="images/1.jpg" target="_blank"><img src="images/1.jpg" width="100px;"  hspace="10" /></a>
    <a href="images/2.jpg" target="_blank"><img src="images/2.jpg" width="100px;"  hspace="10"  /></a>
    <a href="images/3.jpg" target="_blank"><img src="images/3.jpg" width="100px;"  hspace="10"  /></a>
</div>
<div align="center">
    <a href="images/4.jpg" target="_blank"><img src="images/4.jpg" width="100px;"  hspace="10"  /></a>
    <a href="images/5.jpg" target="_blank"><img src="images/5.jpg" width="100px;"  hspace="10"  /></a>
    <a href="images/6.jpg" target="_blank"><img src="images/6.jpg" width="100px;"  hspace="10"  /></a>
</div>
<div align="center">
    <a href="images/7.jpg" target="_blank"><img src="images/7.jpg" width="100px;"  hspace="10"  /></a>
    <a href="images/8.jpg" target="_blank"><img src="images/8.jpg" width="100px;"  hspace="10"  /></a>
    <a href="images/9.jpg" target="_blank"><img src="images/9.jpg" width="100px;"  hspace="10"  /></a>
</div>
</body>
</html>

 

实现点击图片放大效果