Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Can';我找不到纠正输入文本框的方法_Html_Css - Fatal编程技术网

Html Can';我找不到纠正输入文本框的方法

Html Can';我找不到纠正输入文本框的方法,html,css,Html,Css,所以我有一个小的输入框,我只想接受数字,我的外观和一切都很好,但当我点击它时,这个框会画另一个框+上下箭头。我想把两者都除掉。还有,我怎样才能像第一幅图中那样在乞讨中添加一个小图标呢 我想这当点击框内+添加小搜索图标 但我明白了: html: 您可以使用以下方法删除边框: .GeolocationInput-input:focus { outline: none; } 箭头更难删除,不同的浏览器需要不同的规则 对于Webkit浏览器(如Chrome),您需要: .Geolocati

所以我有一个小的输入框,我只想接受数字,我的外观和一切都很好,但当我点击它时,这个框会画另一个框+上下箭头。我想把两者都除掉。还有,我怎样才能像第一幅图中那样在乞讨中添加一个小图标呢

我想这当点击框内+添加小搜索图标

但我明白了:

html:


您可以使用以下方法删除边框:

.GeolocationInput-input:focus {
    outline: none;
}
箭头更难删除,不同的浏览器需要不同的规则

对于Webkit浏览器(如Chrome),您需要:

.GeolocationInput-input::-webkit-outer-spin-button,
.GeolocationInput-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.GeolocationInput-input {
    -moz-appearance: textfield;
}
对于Firefox,您需要:

.GeolocationInput-input::-webkit-outer-spin-button,
.GeolocationInput-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.GeolocationInput-input {
    -moz-appearance: textfield;
}
所有这些都已添加到以下示例中:

.GeolocationInput{
最大宽度:700px;
保证金:0自动;
文本对齐:居中;
-webkit字体平滑:抗锯齿;
}
.GeolocationInput.GeolocationInput表单{
宽度:274px;
保证金:10px自动0;
}
.GeolocationInput.GeolocationInput输入{
宽度:274px;
}
.地理位置输入{
框大小:边框框;
宽度:90%;
边框:1px实心#aebcce;
边界半径:100px;
填充:15px 40px 10px 42px;
利润率:0.15px;
字体大小:16px;
字体系列:proxima nova、Helvetica Neue、Helvetica、Avenir、Lucida Grande、Arial、无衬线字体;
字体大小:300;
-moz外观:textfield;
}
.GeolocationInput输入:焦点{
大纲:无;
}
.GeolocationInput::-webkit外部旋转按钮,
.GeolocationInput::-webkit内部旋转按钮{
-webkit外观:无;
保证金:0;
}
.GeolocationInput::-webkit外部旋转按钮,
.GeolocationInput::-webkit内部旋转按钮{
-webkit外观:无;
保证金:0;
}
.地理位置输入按钮{
背景#635bd4;
最大宽度:275px;
宽度:90%;
颜色:#fff;
光标:指针;
字体大小:16px;
填充:16px 32px;
文字装饰:无;
空白:nowrap;
边界半径:100px;
边界:无;
字体系列:proxima nova、Helvetica Neue、Helvetica、Avenir、Lucida Grande、Arial、无衬线字体;
字号:500;
文本对齐:居中;
}

连续的

您可以使用以下方法删除边框:

.GeolocationInput-input:focus {
    outline: none;
}
箭头更难删除,不同的浏览器需要不同的规则

对于Webkit浏览器(如Chrome),您需要:

.GeolocationInput-input::-webkit-outer-spin-button,
.GeolocationInput-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.GeolocationInput-input {
    -moz-appearance: textfield;
}
对于Firefox,您需要:

.GeolocationInput-input::-webkit-outer-spin-button,
.GeolocationInput-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.GeolocationInput-input {
    -moz-appearance: textfield;
}
所有这些都已添加到以下示例中:

.GeolocationInput{
最大宽度:700px;
保证金:0自动;
文本对齐:居中;
-webkit字体平滑:抗锯齿;
}
.GeolocationInput.GeolocationInput表单{
宽度:274px;
保证金:10px自动0;
}
.GeolocationInput.GeolocationInput输入{
宽度:274px;
}
.地理位置输入{
框大小:边框框;
宽度:90%;
边框:1px实心#aebcce;
边界半径:100px;
填充:15px 40px 10px 42px;
利润率:0.15px;
字体大小:16px;
字体系列:proxima nova、Helvetica Neue、Helvetica、Avenir、Lucida Grande、Arial、无衬线字体;
字体大小:300;
-moz外观:textfield;
}
.GeolocationInput输入:焦点{
大纲:无;
}
.GeolocationInput::-webkit外部旋转按钮,
.GeolocationInput::-webkit内部旋转按钮{
-webkit外观:无;
保证金:0;
}
.GeolocationInput::-webkit外部旋转按钮,
.GeolocationInput::-webkit内部旋转按钮{
-webkit外观:无;
保证金:0;
}
.地理位置输入按钮{
背景#635bd4;
最大宽度:275px;
宽度:90%;
颜色:#fff;
光标:指针;
字体大小:16px;
填充:16px 32px;
文字装饰:无;
空白:nowrap;
边界半径:100px;
边界:无;
字体系列:proxima nova、Helvetica Neue、Helvetica、Avenir、Lucida Grande、Arial、无衬线字体;
字号:500;
文本对齐:居中;
}

连续的

惊人的可能重复!解释得太好了!你知道在背景上添加小搜索项的答案吗?:)太神了解释得太好了!你知道在背景上添加小搜索项的答案吗?:)