css美化界面

登录界面jsp代码

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>



"UTF-8">
登录界面
"stylesheet" href="css/login.css">




"t">

class="container" >
"${pageContext.request.contextPath}/AdminServlet?method=post" method="post">
class="second">
class="third">

登录

class="fa fa-user" aria-hidden="true"> class="f" name="name" value="" placeholder="输入姓名...">
class="fa fa-lock" aria-hidden="true"> class="s" name="id" value="" placeholder="输入密码...">
class="fa fa-id-badge" aria-hidden="true"> <select name="sid" style="height: 25px;width: 80px;text-align: center;margin: 7px; "> select>
class="t" type="submit" value="登录"/>
class="beside"> class="fa fa-share" aria-hidden="true"> "${pageContext.request.contextPath}/login2.jsp">管理员登入

css代码

@import url("https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css"); //常用图标地址
body{
    height: 100%;
    width: 100%;
    background: url(../img/background1.png);                 //背景图片
    background-repeat: no-repeat;
    background-size:cover;
    position: absolute;
    overflow: hidden;
    font-family: sans-serif;
}
.container{
    width: 300px;
    position: absolute;                              //绝对定位
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);                      //使登录框位于整个界面的中心
    background: #F0F8FF;
    padding: 80px;
    border-radius: 10px;
    text-align: center;                              //文体内容居中
    text-shadow: 0px 0px 10px black;                      //文字虚化
    color:powderblue;
}


.second{
    
}
.f{
    border-color: black;
    border-radius:10px ;
    text-align: center;
    margin: 10px;
    padding: 10px;
}
.s{
    border-color: black;
    border-radius:10px ;
    text-align: center;
    margin: 10px;
    padding: 10px;
}
.t{
    height: 30px;
    width: 100px;
    border-color: #FAFAD2;
    border-radius:10px ;
    background: #87CEFA;
}
.beside{
    margin: 20px;
}

效果

css美化界面_第1张图片

 

你可能感兴趣的:(css美化界面)