删除输入效果

huangapple go评论64阅读模式
英文:

Remove input effects

问题

我试图去掉 input 元素上的效果,使其变为平的。我想要移除这个删除输入效果,边框上的 3D 效果。以及这个删除输入效果,移除 "onclick" 效果。

onclick 上,我尝试了以下代码:

input:focus {
  border: none;
}

但是没有起作用。

英文:

I trying to remove input effects, to make input element flat. I want to remove this删除输入效果, 3d effect on border. And this 删除输入效果, remove "onclick" effect.

At onlick I tried to use:

input:focus {
  border: none;
}

But not, worked.

答案1

得分: 1

请在您的代码中尝试这种样式,不要使用"border: none;"样式。

input:focus{
    outline: none;
}
<input type="text" placeholder="Name">
英文:

Plz try this style in your code and don't use border: none; style.

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-css -->

            input:focus{
                outline: none;
            }

<!-- language: lang-html -->

&lt;input type=&quot;text&quot; placeholder=&quot;Name&quot;&gt;

<!-- end snippet -->

huangapple
  • 本文由 发表于 2023年7月20日 17:09:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76728320.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定