• 设为首页
  • 加入收藏
  • 我要投稿
  • 联系站长
  • 网站模板技术交流
当前位置:模板网首页 > 特效插件 > 图像特效 >  纯css打造鼠标移上去正文

纯css打造鼠标移上去图片放大的相册效果

作者:我爱模版网
大小:0.011MB
点击次数:
发布时间:2014-02-14 14:30
分享到:

特效介绍

纯css图片放大特效
不用js代码,纯css打造鼠标移上去图片放大的相册效果,兼容各种主流浏览器。

使用方法

1、以下代码拷贝到head区域

<link rel="stylesheet" href='css/hoverbox.css' type="text/css" media="screen, projection" /> <!--[if lte IE 7]> <link rel="stylesheet" href='css/ie_fixes.css' type="text/css" media="screen, projection" /> <![endif]-->

2、把以下代码拷贝到你想引用的地方,并且替换图片和链接地址为你自己的

<ul class="hoverbox">
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
    <li>
        <a href="#">
            <img src="img/photo01.jpg" alt="description" />
            <img src="img/photo01.jpg" alt="description" class="preview" />
        </a>
    </li>
</ul>

  • 本文标签:
  • css图片放大特效,css相册特效
没有上一篇
兼容IE6的图片圆角、边框、阴影和透明度