图片手风琴效果
来源:互联网 发布:互联网网络销售o2o 编辑:程序博客网 时间:2024/05/17 17:14
图片手风琴效果可以通过简单的css代码来实现其html代码如下
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>手风琴效果</title>
<style>
*{
margin: 0;
padding: 0;
}
ul{
list-style: none;
}
img{
border: none;
}
ul{
height: 360px;
width: 1100px;
}
li{
height: 360px;
width: 10%;
float: left;
}
li:first-child{
background: url(img/0Qvwqqc37bm2T5U4.jpg) no-repeat;
}
li:nth-child(2){
background: url(img/I8qsPnCHL82adc8s.jpg) no-repeat;
}
li:nth-child(3){
background: url(img/LKMHwpOP1Ou7SgqC.jpg) no-repeat;
}
li:nth-child(4){
background: url(img/nW4pjGVlliIg0aKI.jpg) no-repeat;
width: 70%;
}
ul:hover li{
width: 10%;
}
ul li:hover{
width: 70%;
}
</style>
</head>
<body>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</body>
</html>
其要点在于要比较选择器的权重问题,同时权重相同时要注意就近原则。![这里写图片描述](http://img.blog.csdn.net/20161218140946833?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbHp4MDUxOQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
- 图片手风琴效果
- 手风琴图片切换效果
- 图片手风琴效果
- css 手风琴菜单效果,图片动画
- jQuery制作手风琴图片切换效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴效果
- 手风琴折叠效果
- jQuery手风琴效果
- juqery实现手风琴效果
- 局域网共享文件的操作方法
- CSS3.0文字方面的属性
- Java程序员应该知道的10个调试技巧
- 【PHP】fastcgi与php-fpm
- 摸爬滚打DirectX11_day07——DirectInput接口
- 图片手风琴效果
- Android Studio 的Gradle编译加速度
- request.getContextPath()介绍
- C++贪心算法实现马踏棋盘问题
- C#最简单写入读出XML配置文件
- 介绍国外15个播客,可进入
- Java多线程执行业务方法
- 虚继承
- hdu 5996 dingyeye loves stone