登录页面 输入框左侧加图标 炫酷透明效果 bootstrap css fontawesome联合打造

先上图吧,应该有不少人喜欢这种效果的~~

知识点:1.bootstrap 输入框组 实现输入框左侧加图标的功能

               2.border属性 

               3.opacity属性

这是图片


上代码:(第一次使用代码片)



.input-group{
    border:1px #ccc solid;
    border-spacing:1px;
    border-radius:4px;
}
.inputLogin{
    opacity: 0.4;
    transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    -webkit-box-shadow:0 0 0px 1000px #ffffff inset;
    height:34px;
    width:326px;
    padding:6px 12px;
    border:none;
}
.input-group-addon{
    color:white;
    background-color:RGBA(255,255,255,0.4);

}
.btn-default{
    width:374px;
    background-color:rgba(255,255,255,0.4);
}

.loginForm{
    padding:15px;
    width:400px;
    height: 300px;
    margin-left:auto;
    margin-right:auto;
    vertical-align: middle;
}

需要引用bootstrap 和font awesome文件,当然啦,你也可以自己画input和button。

几个小时的成果,如果转载请注明出处。

    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

    <link type="text/css" rel="stylesheet" href="css/login.css"/>

昨天忘记贴input和button了,今天补上:

 
   
   

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值