css变化代码2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
/*格式化,居中,内边框为零*/
*{
margin: 0px auto;
padding: 0px;
}
/*格式清除*/
.clear{
clear: both;
}
#wai{
width: 1200px;
height: 600px;
border: 1px solid transparent;
}
#lajin{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 90px;
margin-top: 20px;
overflow: hidden;
}
/*过渡时间*/
#lajin img{
transition: 2s;
}
/*鼠标经过时的放大缩小*/
#lajin img:hover{
transform: scale(1.5,1.5);
}
#twod{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 60px;
margin-top: 20px;
background-image: url(img/qy2.jpg);
background-size: 100% 100%;
/*过渡所需的时间*/
transition: 2s;
}
/*鼠标经过时的2D旋转180度*/
#twod:hover{
transform: rotate(180deg);
}
#threed{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 60px;
margin-top: 20px;
background-image: url(img/qy3.jpg);
background-size: 100% 100%;
transition: 2s;
}
/*鼠标经过时的沿Y旋转180度*/
#threed:hover{
transform: rotateY(180deg);
}
#yinyingyuanjiao{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 90px;
margin-top: 20px;
background-image: url(img/qy4.jpg);
background-size: 100% 100%;
transition: 2s;
}
/*鼠标经过时的变圆角
阴影*/
#yinyingyuanjiao:hover{
border-radius: 5px;
box-shadow: -10px 10px 5px slategray;
}
#lvjing{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 60px;
margin-top: 20px;
}
#lvjing img{
width: 100%;
height: 100%;
transition: 2s;
}
/*鼠标经过时添加滤镜*/
#lvjing img:hover{
filter: hue-rotate(180deg);
}
#huanbeijing{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 60px;
margin-top: 20px;
background-image: url(img/qy1.jpg);
background-size: 100% 100%;
transition: 2s;
}
/*鼠标经过时的更换背景*/
#huanbeijing:hover{
background-image: url(img/qy6.jpg);
background-size: 100% 100%;
}
#lvjing1{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 60px;
margin-top: 20px;
}
#lvjing1 img{
width: 100%;
height: 100%;
transition: 2s;
}
/*鼠标经过时添加滤镜*/
#lvjing1 img:hover{
filter: grayscale(100%);
}
#lvjing2{
width:300px;
height: 260px;
border: 1px solid transparent;
float: left;
margin-left: 60px;
margin-top: 20px;
background-image: url(img/qy3.jpg);
background-size: 100% 100%;
transition: 5s;
}
#lvjing2:hover{
background-image: url();
background-color: black;
}
</style>
</head>
<body>
<div id="wai">
<div id="lajin">
<img src="img/wangzuxian.jpeg" width="300px" height="260px"/>
</div>
<div id="twod"></div>
<div id="threed"></div>
<div class="clear"></div>
<div id="yinyingyuanjiao"></div>
<div id="lvjing">
<img src="img/qy5.jpg"/>
</div>
<div id="huanbeijing"></div>
</div>
<div id="lvjing1">
<img src="img/qy5.jpg"/>
</div>
<div id="lvjing2">
</div>
</body>
</html>
css变化代码2的更多相关文章
- css变化代码
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> ...
- web前端学习笔记(CSS变化宽度布局)
一.“1-2-1”单列变宽布局: 对于变宽度的布局,首先要使内容的整体宽度随浏览器窗口宽度的变化而变化.因此中间的container容器中的左右两列的总宽度也会变化,这样就会产生不同的情况.这两列是按 ...
- 根据判断PC浏览器类型和手机屏幕像素自动调用不同CSS的代码
1.媒体查询方法在 css 里面这样写 -------------------- @media screen and (min-width: 320px) and (max-width: 480px) ...
- css初始化代码
最近老有新项目开发,一直在找存留的CSS初始化代码,索性放到这里备份下, @charset "utf-8"; /* -------------------------------- ...
- 网站哀悼变灰代码集合 兼容所有浏览器的CSS变暗代码
下面这些CSS代码可以把网站的网页变为黑白,只需将代码加到CSS文件或网页最顶端就可以实现素装.建议全国站长动起来.为遇难的同胞哀悼. 如何将网站变成灰色调呢,网站变灰色方法是什么?有哪些?为了方便大 ...
- CSS透明代码
透明往往能产生不错的网页视觉效果,先奉上兼容主流浏览器的CSS透明代码: .transparent_class { filter:alpha(opacity=50); -moz-opacity:0.5 ...
- 各大门户网站的css初始化代码
腾讯QQ官网 css样式初始 body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select ...
- CSS颜色代码 颜色值 颜色名字大全(转载)
CSS颜色代码 颜色值 颜色名字大全 转载处http://flyjj.com/css-colour-code.html 颜色值 CSS 颜色使用组合了红绿蓝颜色值 (RGB) 的十六进制 (hex) ...
- CSS颜色代码大全
CSS颜色代码大全 转载:http://blog.163.com/wujinhongisme@126/blog/static/3613698020095115919389/ RGB ( Red,Gre ...
随机推荐
- [Luogu2991][USACO10OPEN]水滑梯Water Slides
题面戳我 题面描述 受到秘鲁的马丘比丘的新式水上乐园的启发,Farmer John决定也为奶牛们建一个水上乐园.当然,它最大的亮点就是新奇巨大的水上冲浪. 超级轨道包含 E (1 <= E &l ...
- 关于html中图片上传预览的实现
本地图片预览 第一种方法 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type& ...
- 误操作导致 lvdisplay 命令不存在解决
1.lvdisplay 命令不存在 查看lvm2 包被卸载2.执行 yum install lvm2 命令 发现 yum 被锁 3.删除yum.lock 发现/ 目录只读4.mount -o remo ...
- HBase新的客户端接口
最近学习接触HBase的东西,看了<Habase in Action>,但里面关于HBase接口都是过时的接口,以下为HBase新的客户端接口: package com.n10k; imp ...
- 关于win系统下Anaconda与TensorFlow的安装相关事宜以及错误:ImportError: No module named 'tensorflow'的解决
1.安装TensorFlow之前应该先安装Anaconda,不需要安装python,否则会出问题,我安装的版本是Anaconda3-4.2.0-Windows-x86_64,在这个链接上可以找到--h ...
- centos7上安装ELK
author:headsen chen data :2017-12-04 18:00:57 notice:created by chen himself and not allowed to cop ...
- Mysql自连接的一些用法
自连接是连接的一种用法,但并不是连接的一种类型,因为他的本质是把一张表当成两张表来使用. mysql有时在信息查询时需要进行对自身连接(自连接),所以我们需要为表定义别名. 我们举例说明,下面是商品采 ...
- Office远程代码执行漏洞(CVE-2017-11882)复现
昨晚看到的有复现的文章,一直到今天才去自己复现了一遍,还是例行记录一下. POC: https://github.com/Ridter/CVE-2017-11882/ 一.简单的生成弹计算器的doc文 ...
- conda下载速度慢——添加源
清华提供的anaconda镜像,使用以后真的很快!尤其在学校龟速的网络环境里提速非常明显. https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ TU ...
- [模拟赛] T1 高级打字机
Description 早苗入手了最新的高级打字机.最新款自然有着与以往不同的功能,那就是它具备撤销功能,厉害吧. 请为这种高级打字机设计一个程序,支持如下3种操作: 1.T x:在文章末尾打下一个小 ...