html5+css 及其效果
2017-11-06 08:10
162 查看
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="left">
<div class="top">
Blue App <span style="font-size: 55px;font-weight: 90px">Template</span>
</div>
<div class="cen">
One page Responsive HTML5 parallax<br>business landing page
</div>
<div class="bom">
Lorem ipsum dolor sit amet,consectetur adipisicing elit. Similique autem,<br>
atque in voluptatibus repellat nostrum iusto architecto vel placeat<br>
numquam omnis assumenda.
</div>
<div class="ximg">
</div>
</div>
<div class="right">
<img src="img/phone.png">
</div>
</body>
</html>
width: 100%;
background:url(img/bg.jpg);
background-size: cover;
}
.left{
width: 760px;
height: 580px;
float: left;
margin-top: 180px;
margin-left: 110px;
}
.top{
width: 760px;
height: 100px;
font-size: 60px;
color:#fff; font-weight:500;
}
.top:hover{
transform:scale(1.2);
color: #000;
}
.ximg{
width: 300px;
height: 75px;
margin-top: 80px;
background: url(img/003.png);
background-size: cover;
}
.ximg:hover{
background: url(img/001.png);
background-size: cover;
transition: 3s;
}
.right{
float: left;
margin-top: 160px;
margin-left: 200px;
}
.right:hover{
transform: skew(-25deg);
transition: 1s;
}
.cen{
width: 600px;
height: 120px;
font-size: 28px;
color: #fff;
margin-top: 40px;
}
.cen:hover{
transform:rotate(360deg);
transition: 3s;
}
.bom{
width: 500px;
height: 130px;
font-size: 18px;
color: #fff;
margin-top: 60px;
}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="left">
<div class="top">
Blue App <span style="font-size: 55px;font-weight: 90px">Template</span>
</div>
<div class="cen">
One page Responsive HTML5 parallax<br>business landing page
</div>
<div class="bom">
Lorem ipsum dolor sit amet,consectetur adipisicing elit. Similique autem,<br>
atque in voluptatibus repellat nostrum iusto architecto vel placeat<br>
numquam omnis assumenda.
</div>
<div class="ximg">
</div>
</div>
<div class="right">
<img src="img/phone.png">
</div>
</body>
</html>
//css
body{width: 100%;
background:url(img/bg.jpg);
background-size: cover;
}
.left{
width: 760px;
height: 580px;
float: left;
margin-top: 180px;
margin-left: 110px;
}
.top{
width: 760px;
height: 100px;
font-size: 60px;
color:#fff; font-weight:500;
}
.top:hover{
transform:scale(1.2);
color: #000;
}
.ximg{
width: 300px;
height: 75px;
margin-top: 80px;
background: url(img/003.png);
background-size: cover;
}
.ximg:hover{
background: url(img/001.png);
background-size: cover;
transition: 3s;
}
.right{
float: left;
margin-top: 160px;
margin-left: 200px;
}
.right:hover{
transform: skew(-25deg);
transition: 1s;
}
.cen{
width: 600px;
height: 120px;
font-size: 28px;
color: #fff;
margin-top: 40px;
}
.cen:hover{
transform:rotate(360deg);
transition: 3s;
}
.bom{
width: 500px;
height: 130px;
font-size: 18px;
color: #fff;
margin-top: 60px;
}
相关文章推荐
- Fontawesome字体使用说明及其常用效果语法
- AbsListView及其子类GridView和ListView及其之类ExpandableListView取消默认点击效果
- 模拟QQ分组(具有伸缩功能) (添加开源框架的光闪烁效果)SimpleExpandableListAdapter 适配器的用法,并且可添加组及其组内数据。
- QT 类及其实现效果(3)--启动画面与图像变换
- 基于词向量机器学习及其效果
- 图像柔光效果(SoftGlow)的原理及其实现。
- python sklearn-04:逻辑回归及其效果评估
- Android控件的动画效果的实现及其AnimationListener和Interpolator的使用方法
- ffmpeg 滤镜及其效果
- 基于词向量机器学习及其效果
- iOS开发——高级篇——图片轮播及其无限循环效果
- Html和css动画及其效果
- 场景效果增强技术(BumpMap+Hdr+SoftShadow)及其应用
- iOS开发笔记6:图片轮播及其无限循环效果,ios笔记
- 聚类效果评测-Fmeasure和Accuracy及其Matlab实现
- QT 类及其实现效果(1)--标准对话框与多文档布局
- 溢出文本显示为省略号的效果及其text-overflow:ellipsis;的使用
- php 魔法函数__FILE__ ,define()、pathinfo()和dirname()及其basename()函数的简单打印及其效果
- QT 类及其实现效果(6)--画图
- QT 类及其实现效果(8)--橡皮筋线,Graphics view