登录  /  注册
首页 > web前端 > js教程 > 正文
Bootstrap模仿起筷首页效果_javascript技巧
php中文网
发布: 2016-05-16 15:01:28
原创
1538人浏览过

直接贴代码了




 
  
  
  
  用户注册
  
  
  
  
 
登录后复制

css代码:

.navbar{
 height: 108px;
 background-repeat: no-repeat;
 box-shadow: 0 0 5px #999;
 background-color: #fff;
 border-bottom: 2px solid #e8e3dd;
}
.container{
 width: 1170px;
 padding-right: 15px;
 padding-left: 15px;
 margin-right: auto;
 margin-left: auto;
}
.navbar-header{
 float: left;
}
img{
 vertical-align: middle;
 border: 0;
}
.login-background{
 background-image: url(/images/register-background.jpg);
 background-size: 100% auto;
 padding: 50px 0 15%;
 height: 633px;
}
.login-panel{
 background-color: #fff;
 opacity: .95;
 border-radius: 10px;
 position: relative;
 padding: 0 80px 20px;
 width: 350px;
}
.login-title{
 color: #333;
 font-weight: 300px;
 font-size: 24px;
 position: absolute;
 top: 40px;
 left: 35px;
}
.login-panel,.form-group{
 padding: 50px 0 5px;
 display: table;
 margin-left: auto;
 margin-right: auto;

}
.form-group{
 margin-bottom: 15px;
 width: 100%;
 float: left;
 padding-left: 15px;
 padding-right: 15px;
}
.login-panel .form-group{
 padding-top: 45px;
}
.input-block{
 padding: 11px 0;
}
.has-feedback{
 padding-right: 0;
 position: relative;
}
.form-control{
 color: #777;
 height: 37px;
 border: 1px solid #939393;
 padding-right: 42.5px;
 display: block;
 width: 100%;
 padding: 6px 12px;
 font-size: 14px;
 line-height: 1.42857143;
 background-color: #fff;
 border-radius: 4px;
}
.glyphicon{
 position: absolute;
 top: 0;
 right: 0;
 z-index: 2;
 display: block;
 width: 34px;
 height: 34px;
 line-height: 34px;
 text-align: center;
 pointer-events:none;
}
.auto-login{
 padding-left: 0;
 padding-right: 0;
 text-align: left;
 font-size: 12px;
 color: #777;
 vertical-align: middle;
 width: 50%;
 float: left;
}
label{
 display: inline-block;
 max-width: 100%;
}
.register-user{
 padding-left: 0;
 padding-right: 0;
 text-align: right;
 padding-top: 10px;
 width: 50%;
 float: left;
}
a{
 text-decoration: none;
}
.row{
 margin-right: -15px;
 margin-left: -15px;
}
.login-button{
 margin-top: 10px;
 width: 100%;
 position: relative;
 min-height: 1px;
 padding-right: 15px;
 padding-left: 15px;
}
.btn{
 background: #fa0;
 color: #fff;
 display: block;
 width: 100%;
 padding: 10px 16px;
 font-size: 18px;
 line-height: 1.33333;
 border-radius: 6px;
 font-weight: 400;
 text-align: center;
 vertical-align: middle;
}
登录后复制

效果图:

以上就是本文的全部内容,希望对大家学习Bootstrap有所帮助。

来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 技术文章
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2023 //m.sbmmt.com/ All Rights Reserved | 苏州跃动光标网络科技有限公司 | 苏ICP备2020058653号-1

 | 本站CDN由 数掘科技 提供

登录PHP中文网,和优秀的人一起学习!
全站2000+教程免费学