CSS:输入框的边框颜色有两种颜色? [英] CSS: border color of input box has two colors?

查看:67
本文介绍了CSS:输入框的边框颜色有两种颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试以下代码,上下边框颜色比上下边框颜色深.为什么会发生这种情况以及如何解决呢?

Try the below code, the upper and left border color is darker than the lower and right border color. Why this is happening and how to fix this?

<html>
<input type="text">
</html>

<style>

input:focus{
    outline:none;
    box-shadow: none;

}

input{
    border-color:orange;
    box-shadow: none;
}

</style>

推荐答案

有许多 边框样式 值.尝试找到一个适合您的 solid .我猜想 input 元素会将其设置为 inset .

There are many border-style values. Try finding one that works for you like solid. I'm guessing the input elements are setting it to inset.

这篇关于CSS:输入框的边框颜色有两种颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆