css 动画效果1
来源:互联网 发布:软件项目预研报告 编辑:程序博客网 时间:2024/04/30 23:51
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html><html ><head><%String path = request.getContextPath();String base = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><base href="<%=base%>"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta content="max-age=0" http-equiv="Cache-Control"><meta content="240" name="MobileOptimized"><meta content="YES" name="apple-touch-fullscreen"><meta content="yes" name="apple-mobile-web-app-capable"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title></title> <link rel="stylesheet" href="template/buyersalerinfo/css/login.css"> <link rel="stylesheet" href="template/buyersalerinfo/css/clear.css"></head> <body> <header><img src="template/buyersalerinfo/images/logo.jpg" alt=""></header> <div class="slogn"> <img class="slogn1" src="template/buyersalerinfo/images/slogn1.jpg" alt=""> <img class="slogn2" src="template/buyersalerinfo/images/slogn2.jpg" alt=""> </div> <form method="post"> <table> <tr> <td><label for="txtname">用户名:</label></td> <td><input type="text" id="txt_name" name="uname" placeholder="请输入您的用户名"/></td> </tr> <tr> <td><label for="txtpswd">密 码:</label></td> <td><input type="password" id="txt_pswd" name="password" placeholder="请输入您的密码"/></td> </tr> </table> <input type="submit" id="txt_sub" value="登陆" /></form> </body></html>
width:100%;
height: 100%;
background: url(../images/bg.jpg) ;
background-size: 100% 100%;
}
header img{
margin:0.5rem;
width:40%;
}
.slogn{
padding: 2rem;
height: 20%;
margin:3rem auto;
font-size: 2rem;
font-family: "heiti";
}
.slogn1{
animation: animation1 2s linear 1;
-webkit-animation: animation1 2s linear 1;
-moz-animation: animation1 2s linear 1;
}
@-webkit-keyframes animation1{
0%{margin-left:-10rem;opacity:0;}
100%{margin-left:0;opacity:1;}
}
@-moz-keyframes animation1{
0%{margin-left:-10rem;opacity: 0;}
100%{margin-left:0;opacity:1;}
}
.slogn2{
margin-top:1rem;
float: right;
animation: animation2 2s linear 1;
-webkit-animation: animation2 2s linear 1;
-moz-animation: animation2 2s linear 1;
}
@-webkit-keyframes animation2{
0%{margin-right:-10rem;opacity:0;}
100%{margin-right:0;opacity:1;}
}
@-moz-keyframes animation2{
0%{margin-right:-10rem;opacity: 0;}
100%{margin-right:0;opacity:1;}
}
form{
width: 100%;
margin:0 auto;
text-align: center;
padding: 0 10rem;
}
form tr{
margin:2rem auto;
width: 100%;
}
table{
width: 100%;
color: #fff;
margin:auto auto;
}
#txt_name{
width: 80%;
margin:1rem 0;
border: 1px solid #fff;
background-color:transparent;
border-radius: 5px;
}
#txt_pswd{
width: 80%;
border: 1px solid #fff;
margin:1rem 0;
background-color:transparent;
border-radius: 5px;
}
#txt_sub{
text-align:center;
vertical-align:middle;
width: 60%;
color: #db4128;
margin:1rem auto;
height: 2rem;
border-radius:10px;
background:rgba(255,255,255,0.6);
}
0 0
- css 动画效果1
- css 动画效果 -- transition
- CSS-动画效果
- css动画效果
- css动画效果
- css样式-动画效果
- CSS动画效果
- css动画效果
- 浅谈CSS动画效果
- css实现动画效果
- css动画效果
- css动画效果
- css 动画效果
- CSS各种动画效果
- css弹性动画效果
- CSS动画效果入门
- CSS动画效果
- 动画效果css导航栏
- ActiveMq-Publisher/Subscribe入门例子
- POJ 1659 Frogs' Neighborhood
- 【iOS开发-网络】使用NSURLSessionDownloadTask下载任务(不能知道下载进度)
- 点击 按钮条qq对话框的窗口实现方式。(复制代码直接运行的。、)
- C语言,求两个有序数组的公共元素
- css 动画效果1
- 剑指offer 11 - 数值的整数次方
- LeetCode 之Remove Linked List Elements
- oracle表设计
- 【图书管理系统】——VS2013加IIS8如何发布网站
- 无公式无代码白话机器学习算法之决策树
- django 数据库配置问题,windows
- Maven工程错误 之 Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0
- FaceBook/infer-inferTraceBugs命令使用