css & input type & search icon
css & input type & search icon
bug

type="search"
<input
@input="autoSearch"
@change="autoSearch"
@click="addSearchHistory"
ref="search-input"
type="search"
class="search-input"
:placeholder="placeholder"
v-model="input"
/>
OK
type="text" / type="input"
<input
@input="autoSearch"
@change="autoSearch"
@click="addSearchHistory"
ref="search-input"
type="input"
class="search-input"
:placeholder="placeholder"
v-model="input"
/>

.search-delete{
position: absolute;
display: block;
top: 1rem;
right: calc(1.38rem);
width: .32rem;
height: .32rem;
border-radius: 50%;
background: url("../../images/search/remove.svg") no-repeat center center;
/* background: url("../../images/search/remove.svg") no-repeat center center fixed; */
opacity: 1;
/* background-color: transparent; */
}
css full background image
https://css-tricks.com/perfect-full-page-background-image/
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.search-delete{
position: absolute;
display: block;
top: 1rem;
right: calc(1.38rem);
width: .32rem;
height: .32rem;
border-radius: 50%;
background: url("../../images/search/remove.svg") no-repeat center center;
/* background: url("../../images/search/remove.svg") no-repeat center center fixed; */
opacity: 1;
/* background-color: transparent; */
}
css transparent background color
transparent, background, opacity
background-color: transparent;
https://cssreference.io/property/background-color/
https://stackoverflow.com/questions/11184117/transparent-css-background-color
.search-delete{
position: absolute;
display: block;
top: 1rem;
right: calc(1.38rem);
width: .32rem;
height: .32rem;
border-radius: 50%;
background: url("../../images/search/remove.svg");
opacity: 1;
/* background-color: transparent; */
}
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
css & input type & search icon的更多相关文章
- css input[type=file] 样式美化,input上传按钮美化
css input[type=file] 样式美化,input上传按钮美化 参考:http://www.haorooms.com/post/css_input_uploadmh
- iphone H5 input type="search" 不显示搜索 解决办法
H5 input type="search" 不显示搜索 解决办法 H5 input type="search" 不显示搜索 解决方法 在IOS(ipad iP ...
- html5 input type=search
<style> input[type="search"]{ border-radius:2px;} input::-webkit-search-cancel-butto ...
- H5 input type="search" 不显示搜索 解决方法
在IOS(ipad iPhone等)系统的浏览器里打开H5页面.如下写法: <input type="search" name="search” id=" ...
- CSS input type="number"出现上下箭头时解决方案
input type="number"时录入内容不可控制,解决方案是在css中添加//火狐input[type=number] { -moz-appearance:tex ...
- CSS <input type="file">样式设置
这是最终想要的效果~~~ 实现很简单,div设置背景图片,<input type="file"/>绝对定位上去再设置opacity:0(透明度为0 ) 直接上代码,希望 ...
- CSS修改input[type=range]滑块样式
input[type="range"]是html5中的input标签新属性,样子如下: <input type="range" value="4 ...
- 移除HTML5 input在type="search"时的清除按钮
input[type="search"]::-webkit-search-cancel-button { display: none; }
- input 输入框type='search'去掉×
input输入时,为了让ios键盘的前进会变为搜索,设置input的type='search'但是安卓输入框后面会出现个小叉,实际不需要这个× 解决办法: input[type=search]::-w ...
随机推荐
- javamail发送邮件,支持yahoo,google,163.com,qq.com邮件发送
https://www.iteye.com/blog/fangyunfeng-1847352 https://blog.csdn.net/weixin_38465623/article/details ...
- php中一种单引号逃逸造成的注入
demo如下: $post = $_POST; $sql=''; $array['name'] = $post['name']; $array['age'] = 18; $array['addr'] ...
- java打exe
参考文章: 注册码: https://www.cnblogs.com/jepson6669/p/9211208.html 官网: https://exe4j.apponic.com/ 在上篇基础上,将 ...
- 在项目中如何自定义的Eslint配置
一.设置js风格的缩进为4个空格 在你的前端项目中找到.eslintrc.js文件,如图 module.exports = { root: true, parserOptions: { parser: ...
- MySql数据表设计,索引优化,SQL优化,其他数据库
MySql数据表设计,索引优化,SQL优化,其他数据库 1.数据表设计 1.1数据类型 1.2避免空值 1.3text类型优化 2.索引优化 2.1索引分类 2.2索引优化 3.SQL优化 3.1分批 ...
- Spring5源码,Spring DispatecherServlet的生命周期
一.前端控制器模式 二.DispatcherServlet的执行链 三.DispatcherServlet 1.策略初始化 2.请求预处理 3.请求处理 4.视图解析 5.处理调度请求 - 视图渲染 ...
- (21)tar打包命令详解
Linux 系统中,最常用的归档(打包)命令就是 tar,该命令可以将许多文件一起保存到一个单独的磁盘中进行归档.不仅如此,该命令还可以从归档文件中还原所需文件,也就是打包的反过程,称为解打包.1.t ...
- TypeScript中的private、protected
首先我们要清楚 private . protected 现阶段只是javascript中的保留字(Reserved words),而非关键字(Keywords ).因此TypeScript中的纯类型声 ...
- Hadoop----hdfs dfs常用命令的使用
用法 -mkdir 创建目录 Usage:hdfs dfs -mkdir [-p] < paths> 选项:-p 很像Unix mkdir -p,沿路径创建父 ...
- Codeforce 380A Sereja and Prefixes【二分】
题意:定义两种操作 1 a ---- 向序列中插如一个元素a 2 a b ---- 将序列的前a个元素[e1,e2,...,ea]重复b次插入到序列中 经过一列操作后,为处于某个位置p的元素是多少.数 ...