网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

html+CSS3实现input输入框蓝光特效

时间:2024-10-25 10:10:18

1、新建html文档。

html+CSS3实现input输入框蓝光特效

2、书写hmtl代艨位雅剖码。<div style="width:520px;height:34px;margin:40px auto 0 auto;"><input type="text" placeholder="用户名或邮件地址" style="height:25px"/><input type="password" placeholder="请输入密码" style="height:25px"/><a href="#">登陆</a> </div>

html+CSS3实现input输入框蓝光特效

3、书写hmtl代艨位雅剖码。<style>input { transition: all 0.30s ease-in-out; -webkit-transition: all 0.30s ease-in-out; -moz-transition: all 0.30s ease-in-out; border: #35a5e5 1px solid; border-radius: 3px; outline: none; }input:focus { box-shadow: 0 0 5px rgba(81, 203, 238, 1); -webkit-box-shadow: 0 0 5px rgba(81, 203, 238, 1); -moz-box-shadow: 0 0 5px rgba(81, 203, 238, 1); }a { text-decoration: none; background: rgba(81, 203, 238, 1); color: white; padding: 6px 25px 6px 25px; font: 12px '微软雅黑'; border-radius: 3px; -webkit-transition: all linear 0.30s; -moz-transition: all linear 0.30s; transition: all linear 0.30s; }a:hover { background: rgba(39, 154, 187, 1); }</style>

html+CSS3实现input输入框蓝光特效

4、整体代码结构

html+CSS3实现input输入框蓝光特效

5、查看效果

html+CSS3实现input输入框蓝光特效
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com