cssTest
html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywors" content="关键字">
<title>动态管理</title>
<link type="text/css" href="a.css" rel="stylesheet">
<style type="text/css">
*{margin:0}
/*start body*/ body{width:100%;color:#FFFFFF;background-image:url("1.jpeg");/*设置背景平铺*/background-repeat: repeat;/*背景居中*/background-position:center;/*防止背景随文本滚动条滚动至图片底部而背景消失*/background-attachment:fixed;/*当元素内容溢出时选择是否使用滚动条 默认 visible*/overflow:auto} /*end body*/
/*start text*/ .text{width:700px;height:400px;margin:0 auto;}
.text p{line-height:200%;font-size:200%;/*首行缩进*/text-indent:2em;/*字体 宋体楷体等*/font-family:Serif;/*字体样式 斜体等*/font-style:oblique;/*字符间距*/letter-spacing:20px;font-weight:1800;/*文本大写字母开头*/text-transform:capitalize;}
.text h1{font-size:5vh/*vh 表示视图高度 百分比高*/;/*文本对齐方式*/text-align:center; line-height:200%;font-family:Fantasy;} /*文本修饰*/
.text h2{text-decoration:overline}
.text h3{text-decoration:line-through}
.text h4{text-decoration:underline}
.text h5{text-decoration:blink}
/*end text*/
/* start img*/ .imgList{width:100%;height:100%;top:0;left:0;}
.img1,.img2,.img3,.imgList{position:absolute;}/*绝对定位*/
.img1{left:10%;top:10%;}
/* .img2{bottom:10%;right:10%;animation: myframe 10s esse-in-out 0s infinite alternate; }*/
/* .img2{bottom:10%;right:10%;} */
.img3{top:10%;right:10%;transform:rotate(50deg);/*图片剪切*/clip:circle(100) } /*end img*/
/*start list*/ .list{width:100%; height:400px;font-size:200%;/*边框样式*/border:solid;/*边框颜色*/border-color:red;/*边框宽度 上右下左*/border-width: 5px 20px 10px 1px;}
.l1{list-style-type:none;}
.l2{list-style-type:circle;}
.l3{list-style-type:square;}
/*end list*/
</style>
</head>
<body>
<!-- start text--> <div class="text" >
<h1>动态网页测试</h1>
<h2>测试标题2</h2>
<h3>测试标题3</h3>
<h4>测试标题4</h4>
<h5>测试标题5</h5>
<!--start list-->
<div class="list">
<ul class="l1">
<li>茶</li>
<li>咖啡</li>
</ul>
<ul class="l2">
<li>茶</li>
<li>咖啡</li>
</ul>
<ul class="l3">
<li>茶</li>
<li>咖啡</li>
</ul>
</div>
<!--end list-->
<p id="test"></p>
</div> <!-- end text-->
<!--star image--> <div class="imgList">
<img src="1.jpeg" width="250" height="200" alt="" class="img1 bounce">
<img src="2.jpeg" width="250" height="200" alt="" class="img2 run">
<img src="3.jpg" width="250" height="200" alt="" class="img3 my">
</div>
<!--end image-->
<script>
var i=0;
var str="this is 动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试动态网页测试";
window.onload = function typing(){
var myDiv = document.getElementById("test");
myDiv.innerHTML+=str.charAt(i)
i++;
console.log("AAA");
if(i<=str.length){
var id =setTimeout(typing,100);
}
}
</script> </body>
</html>
css
.bounce{animation:bounce 3s ease-out infinite;}
@keyframes bounce {
0% {
transform:translateY(-100%);
opacity:;
}
5% {
transform:translateY(-100%);
opacity:;
}
15% {
transform:translateY(0);
padding-bottom: 5px;
}
30% {
transform:translateY(-50%);
}
40% {
transform:translateY(0%);
padding-bottom: 6px;
}
50% {
transform:translateY(-30%);
}
70% {
transform:translateY(0%);
padding-bottom: 7px;
}
80% {
transform:translateY(-15%);
}
90% {
transform:translateY(0%);
padding-bottom: 8px;
}
95% {
transform:translateY(-7%);
}
97% {
transform:translateY(0%);
padding-bottom: 9px;
}
99% {
transform:translateY(-3%);
}
100% {
transform:translateY(0);
padding-bottom: 9px;
opacity:;
}
}
.my{animation:my 3s ease-out infinite;}
@keyframes my {
0%{transform:translate3d(0,0,0);}
33%{transform:translate3d(-10px,20px,0);}
66%{transform:translate3d(5px,-20px,0);}
100%{transform:translate3d(0,0,0);}
}
.run{animation:run 5s ease-in-out 0s infinite;}
@keyframes run {
0%{bottom: 20px;left:200px;opacity:;}
50%{bottom: 50px;left:300px;opacity:0.5;}
75%{bottom: 100px;left:400px;opacity:;}
100%{bottom: 200px;left:500px;}
}
cssTest的更多相关文章
- css-test
transition-content See the Pen NLOgVR by nakata139@gmail.com (@deepblue1982) on CodePen.
- 从is(":checked")说起
*此文所用jQuery版本应大于1.6.1 如何判断一个单选(复选)框是否选中. 对于刚接触jQuery的人,第一反应必然是. <input id="checkbox1" ...
- HTML基础
HTML指的是超文本标记语言 (Hyper Text Markup Language), HTML不是一种编程语言,而是一种标记语言 (markup language) ,HTML使用标记标签来描述网 ...
- 使用gulp解决RequireJS项目前端缓存问题(一)
1.前言 前端缓存一直是个令人头疼的问题,你有可能见过下面博客园首页的资源文件链接: 有没有发现文件名后面有一串不规则的东东,没错,这就是运用缓存机制,我们今天研究的就是这种东西. 先堵为快,猛戳链接 ...
- 静态Include和动态Include测试并总结
主要代码 hjzgg.css .center-div{ width:auto; margin-left: 40%; margin-right: 40%; display: block; positio ...
- html基础大全(经典)
HTML教程 一.HTML基础(人) 1.基础概念: 1.1.自动闭合标签和闭合标签(如出错html编写时不会报错) 自闭合:<mete /> 闭合:<table>文字< ...
- html/css基础篇——link和@inport详解以及脚本执行顺序探讨
先说一说两者之间的异同 两者都可以引用外部CSS的方式,现在主流浏览器两者都支持(ps:@import是CSS2.1提出的),但是存在一定的区别: 1.link是XHTML标签,除了加载CSS外,还可 ...
- flex 4 布局样式
Flex 4 样式与布局 第一篇 Flex 4 与自定义布局(Layout) Flex 4/Spark组件架构的新功能之一是可以定制一个容器的布局而不必改变容器本身.您需要做的就是定义一个自定义布局. ...
- Django配置静态文件(CSS\js)及Django调用JS、CSS、图片等静态文件
1 新建一项目: root@python:django-admin.py startproject csstest root@python:cd csstest root@python:ls csst ...
随机推荐
- 【转】WinAPI: CreateFontIndirect - 根据字体结构建立逻辑字体
//声明: CreateFontIndirect( const p1: TLogFont {字体结构} ): HFONT; {返回新字体指针} //TLogFont 是 tagLOGFONTA 结构的 ...
- 转载:Django之form表单
转载: 一.使用form类创建一个表单 先定义好一个RegForm类: forms.py from django import forms # 导入forms类 class NameForm(form ...
- python后端开发工程师考证试题
python开发工程师考证试题 问答题链接 python开发工程师考证试题 选择题 题目 关于 Python 程序格式框架的描述,以下选项中错误的是 ( A ) A: Python 语言不采用严格的“ ...
- 【转】WEB前端调优
首先从一次完整的的请求说起:(以此为例get,www,baidu.com) 1,webbrower 发出request, 2,然后解析www.baidu.com为ip,找到ip的服务器, 3,服务器处 ...
- wps填充1到1000
A1单元格1 ,选中,填充,序列,确定
- PLSQLDeveloper安装与配置(详细图文)
PLSQLDeveloper安装与配置(详细图文) 听语音 | 浏览:21912 | 更新:2016-10-24 17:12 1 2 3 4 5 6 7 分步阅读 在公司做项目时需要使用PLSQL D ...
- UVALive 6507 Passwords
Passwords Time Limit: 3000ms Memory Limit: 131072KB This problem will be judged on UVALive. Original ...
- 7-26 Windows消息队列(25 分)(堆排序)
7-26 Windows消息队列(25 分) 消息队列是Windows系统的基础.对于每个进程,系统维护一个消息队列.如果在进程中有特定事件发生,如点击鼠标.文字改变等,系统将把这个消息加到队列当中. ...
- noi.openjudge——8465 马走日
http://noi.openjudge.cn/ch0205/8465/ 查看 提交 统计 提问 总时间限制: 1000ms 内存限制: 1024kB 描述 马在中国象棋以日字形规则移动. 请编写 ...
- mysql 安装与卸载
mysql用了也好几年了,但每次安装完或者卸载完就忘记了安装步骤以及卸载步骤,因此将关键的步骤记录下来,供以后参考. 1.mysql安装 ①安装类型有typical,complete,custom,一 ...