运用到:
- box-radius
- box-shadow
- transition
<html>
<head>
<style type="text/css">
#main
{
height: 500px;
width: 500px;
text-align: center;
margin: 0 auto;
background-color: #ffffff;
}
input
{
border-color: rgba(189, 62, 242, 75);
box-shadow: 0 0 8px rgba(189, 62, 94, .5);
outline: none;
transition: border linear .2s, box-shadow linear .5s;
-moz-transition: border linear .2s, -moz-box-shadow linear .5s;
-webkit-transition: border linear .2s, -webkit-box-shadow linear .5s;
-moz-box-shadow: 0 8px rgba(189, 62, 94, .5);
-webkit-box-shadow:0 8px rgba(189, 62, 94, .5);
border-radius: 5px;
}
ul
{
margin: 0 auto;
}
li
{
margin-top: 100px;
}
</style>
</head>
<body>
<div id='main'>
<ul>
<li>
<input type='text'