input的边框圆角阴影
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>响应式登录</title> <link rel="stylesheet" type="text/css" href="css/style.css"/> </head> <body> <div id="wrapper"> <header><img src="img/1a.png"/></header> <article class="count"> <form> <input type="text" placeholder="请输入账号"/> <input type="pasword" placeholder="请输入密码"/> <input type="submit" value="登录"/> </form> <div> <span> <input type="checkbox"/> 记住密码 </span> <span>忘记密码</span> </div> </article> <footer> <ul> <li><a href="#"><img src="img/2.png"/></a></li> <li><a href="#"><img src="img/3.png"/></a></li> <li><a href="#"><img src="img/4.png"/></a></li> </ul> </footer> </div> </body> </html>
*{
padding:0;
margin:0;
list-style:none;
}
body,html{
background:#4876ef;
}
#wrapper{
width:400px;
height:500px;
background:#fff;
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
margin:auto;
overflow:hidden;
}
header{
width:100%;
height:91px;
display:-webkit-box;
-webkit-box-pack:center;
/* border:1px solid red; */
}
header>img{
position:relative;
top:-30px;
}
.count{
width:100%;
/* border:1px solid red; */
margin-top:10px;
}
.count>form{
width:90%;
/* border:1px solid green; */
margin:0 auto;
display:-webkit-box;
-webkit-box-orient: vertical;
}
.count>form>input{
display:block;
padding:13px;
/* border:0px; */
/* box-shadow:0 0 1px #999999; */
}
.count>form>input:nth-child(1){
border-radius:3px 3px 0 0 ;
}
.count>form>input:nth-child(2){
border-radius:0 0 3px 3px;
}
.count>form>input:nth-child(3){
margin-top:20px;
background:#4876EF;
border-radius:3px;
color:#fff;
}
.count>div{
width:90%;
/* border:1px solid green; */
margin:10px auto;
display:-webkit-box;
-webkit-box-pack:justify;
}
.count>div>span{
display:block;
color:#666;
}
footer{
width:100%;
}
footer>ul{
width:100%;
display:-webkit-box;
-webkit-box-pack:center;
}
footer>ul>li{
display:-webkit-box;
}
footer>ul>li>a{
display:block;
}
footer>ul>li>a>img{
display:block;
width:60%;
margin:0 auto;
}
@media screen and (max-width:420px){
#wrapper{
width:100%;
height:100%;
background:#4876EF;
}
header{
overflow:hidden;
}
header>img{
top:30px;
}
.count>form>input:nth-child(3){
background:#0000ff;
}
.count>div>span{
color:#fff;
}
}0
收起
正在回答 回答被采纳积分+1
1回答
好帮手慕糖
2019-06-27 09:59:49
同学你好,关于圆角的问题,已经在你的另一个问题中进行了回复哦,可以查看问题:http://class.imooc.com/course/qadetail/128865
媒体查询的问题,可以查看你的另一个问题,即:
http://class.imooc.com/course/qadetail/128912
希望能帮助到你,祝学习愉快!
响应式开发与常用框架 2018
- 参与学习 人
- 提交作业 2198 份
- 解答问题 5012 个
如果你有web端基础,既想进阶,又想进军移动端开发,那就来吧,我们专题为你带来的课程有HTML5、CSS3、移动基础、响应式、bootstrap、less等,让你在前端道路上畅通无阻!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星