纯html+css3实现立体式鼠标悬停翻转特效

 时间:2026-02-14 13:41:49

1、准备好需要用到的图。

纯html+css3实现立体式鼠标悬停翻转特效

纯html+css3实现立体式鼠标悬停翻转特效

纯html+css3实现立体式鼠标悬停翻转特效

2、新建html文档。

纯html+css3实现立体式鼠标悬停翻转特效

3、书写hmtl代码。

 <ul id="content">

     <li>

      <div class="wrapper"> <img src="images/a.png"> <span class="information"> <strong>标题</strong>百度经验</span> </div>

     </li>

     <li>

      <div class="wrapper"> <img src="images/b.jpeg"> <span class="information"> <strong>标题</strong>百度经验</span> </div>

     </li>

     <li>

      <div class="wrapper"> <img src="images/c.png"> <span class="information"> <strong>标题</strong>百度经验</span> </div>

     </li>

    </ul>

纯html+css3实现立体式鼠标悬停翻转特效

4、初始化css代码。

<style>

* { margin: 0; padding: 0 }

html { overflow-y: scroll }

body, h1, h2, h3, p, div, dl, dt, dd, ul, ol, li, table, th, td, form, button, input, textarea, legend, hr { padding: 0; margin: 0 }

body { padding: 0; margin: 0;  color: #333; font: 12px/18px "微软雅黑", arial; height: 100% }

button, input, select, textarea { font-size: 100% }

textarea { font: 14px/20px "微软雅黑" }

button { border: 0 }

li { list-style: none }

img { border: 0; }

a { color: #06c; text-decoration: none; cursor: pointer; outline: none; hide-focus:expression(this.hideFocus = true);}

a:hover { color: #06c; text-decoration: underline }

.left{ float:left;}

.right{ float:right;}

.clear:after,ul:after{content:"";display:block;visibility:hidden;height:0;clear:both;}

.clear,.area,.con:after{zoom:1}

</style>

纯html+css3实现立体式鼠标悬停翻转特效

5、书写css代码。

初始化css代码。

<style>

* { margin: 0; padding: 0 }

html { overflow-y: scroll }

body, h1, h2, h3, p, div, dl, dt, dd, ul, ol, li, table, th, td, form, button, input, textarea, legend, hr { padding: 0; margin: 0 }

body { padding: 0; margin: 0;  color: #333; font: 12px/18px "微软雅黑", arial; height: 100% }

button, input, select, textarea { font-size: 100% }

textarea { font: 14px/20px "微软雅黑" }

button { border: 0 }

li { list-style: none }

img { border: 0; }

a { color: #06c; text-decoration: none; cursor: pointer; outline: none; hide-focus:expression(this.hideFocus = true);}

a:hover { color: #06c; text-decoration: underline }

.left{ float:left;}

.right{ float:right;}

.clear:after,ul:after{content:"";display:block;visibility:hidden;height:0;clear:both;}

.clear,.area,.con:after{zoom:1}

</style>

纯html+css3实现立体式鼠标悬停翻转特效

6、代码整体结构。

纯html+css3实现立体式鼠标悬停翻转特效

7、查看效果。

纯html+css3实现立体式鼠标悬停翻转特效

  • 如何利用纯css,制作圆圈数字?不需要图片
  • 如何画JavaScript的内存逻辑图
  • 如何使用Visual Studio 2010创建ASP.NET网站
  • Axure设计:简单的图片细节局部放大
  • wordpress 添加分享按钮到每篇文章的顶部
  • 热门搜索
    少年中国说手抄报 母亲节手抄报图片 与清明节有关的手抄报 绿色生活手抄报 爱我家乡手抄报 手抄报的版面设计图 学生手抄报设计指南 庆国庆手抄报图片 孝心手抄报 手抄报教师节