一个简单美观的前端登录界面

在 webRoot目录下创建css文件夹 直接引入  style.css文件:

body{
    background: url("../img/1.jpg");
    animation-name:myfirst;
    animation-duration:12s;
    /*变换时间*/
    animation-delay:2s;
    /*动画开始时间*/
    animation-iteration-count:infinite;
    /*下一周期循环播放*/
    animation-play-state:running;
    /*动画开始运行*/
}
@keyframes myfirst
{
    0%   {background:url("../img/1.jpg");}
    25%  {background:url("../img/2.jpg");}
    50%  {background:url("../img/3.jpg");}
    75% {background:url("../img/1.jpg");}
    100% {background:url("../img/1.jpg");}
}
.form{background: rgba(255,255,255,0.2);width:400px;margin:120px auto;}
/*阴影*/
.fa{display: inline-block;top: 27px;left: 6px;position: relative;color: #ccc;}
input[type="text"],input[type="password"]{padding-left:26px;}
.checkbox{padding-left:21px;}s

在WebRoot目录下创建img目录:引入图片素材  1.jpg,2.jpg...

创建jsp文件:

<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>




  
   我的登录界面
    
  
  
    


    


       

           

               

用户登录


               

                   

                       
                       用户名:
                   

                   

                           
                          密码: 
                   

                   

                       
                   

                   

                       
                   

               

           

       

   









你可能感兴趣的:(前端登录界面)