dock1
2016-07-13 19:18
204 查看
<!DOCTYPE html>
<html>
<head>
<meta
charset="UTF-8">
<title></title>
<style
type="text/css">
.wrap{
position:
fixed;
bottom:
0;
left:
50%;
margin-left:-275px ;
transform: rotate(180deg);
}
.wrap>div{
width:
100px;
height:
100px;
background-color: aquamarine;
float:
left;
margin-left:
10px;
transition:
all 0.5s;
}
</style>
</head>
<body>
<div
class="wrap">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
<script
type="text/javascript">
var
divs = document.querySelectorAll(".wrap>div");
for
(var i = 0; i
< divs.length; i++) {
divs[i].onmouseover
= function(){
this.style.width
= "200px";
this.style.height
= "200px";
}
divs[i].onmouseout
= function(){
this.style.width
= "";
this.style.height
= "";
}
}
</script>
</body>
</html>
<html>
<head>
<meta
charset="UTF-8">
<title></title>
<style
type="text/css">
.wrap{
position:
fixed;
bottom:
0;
left:
50%;
margin-left:-275px ;
transform: rotate(180deg);
}
.wrap>div{
width:
100px;
height:
100px;
background-color: aquamarine;
float:
left;
margin-left:
10px;
transition:
all 0.5s;
}
</style>
</head>
<body>
<div
class="wrap">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
<script
type="text/javascript">
var
divs = document.querySelectorAll(".wrap>div");
for
(var i = 0; i
< divs.length; i++) {
divs[i].onmouseover
= function(){
this.style.width
= "200px";
this.style.height
= "200px";
}
divs[i].onmouseout
= function(){
this.style.width
= "";
this.style.height
= "";
}
}
</script>
</body>
</html>
相关文章推荐
- 如何移除或禁用 Ubuntu Dock
- 深入分析C#中WinForm控件之Dock顺序调整的详解
- Docker搭建便捷的开发者环境
- 从Apple最新的OS Yosemite的LaunchPad中删除旧的iMovie
- dock 栏使用技巧(一)添加文件夹快捷方式 空白分隔区 最近使用列表
- TDockTabSet 实现停靠
- Delphi中停靠技术的实现[转]
- WinForm之控件Dock排列顺序
- Ubuntu 14.04 安装配置 cairo-dock 实现美化+特效
- Cairo-Dock 系统关机无效
- ubuntu 安装 DOCK
- Ubuntu快捷方式的描述
- 使用GitLab自动创建 Docker img
- jquery 菜单效果
- Fedora 25安装后配置
- JavaFX - Dock效果模态框
- Dock属性
- macOS: 禁止Dockfixup运行的Profile值
- dock2