<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-sha...
DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Transparent Input Box</title><style>.input-box{background-color:rgba(255,255,255,0.5);border:1px solid #ccc;padding:5px;width:200px;}</style></head><body...
/* styles.css */body{font-family:Arial,sans-serif;/* 设置页面字体 */background-color:#f4f4f4;/* 设置页面背景色 */display:flex;/* 使用flexbox布局 */align-items:center;/* 垂直居中对齐 */justify-content:center;/* 水平居中对齐 */height:100vh;/* 设置页面高度为视口高度 */margin:0;/* ...
*:after, *:before{-webkit-box-sizing:border-box;box-sizing:border-box;}.clearfix:before, .clearfix:after{content:'';display:table;}.clearfix:after{clear:both;}body{background:#f9f7f6;color:#404d5b;font-weight:500;font-size:1.05em;font-family:'Raleway', Arial, sans-serif;}a{color:...
border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 ...
search-btn{ background-color: #fff; } </style> </head> <body> <div class="search-box"> <input type="text" class="search-txt" placeholder="想搜啥?" /> <a class="search-btn"> <i class="fa fa-search" aria-hidden="true"></i> </a> </div> </body> </html> 2.流光版...
color ease-in-out .15s,box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s } input:focus{ border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); box-shadow...
{width:450px;background-color:#fff;/* 内边距(上下左右) */padding:40px;/* 盒子阴影 */box-shadow:0px 0px 10pxrgba(0,0,0,0.1);border-radius:8px;}.wrapper .input-data{/* 相对定位 */position:relative;width:100%;height:40px;}.wrapper .input-data input{width:100%;height:100%;...
box-shadow:02px10px2px#999999; border-radius:30px; } 这里说一下box-shadow。 box-shadow向框添加一个或多个阴影。 语法: box-shadow: h-shadow v-shadow blur spread color inset; 注释: box-shadow属性由逗号分隔阴影列表,每个阴影由 2-4 个长度值、可选的颜色值以及可选的inset关键词来规定。省略...
border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.tl-price-input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow...