更改边框颜色而不更改边框宽度 [英] change border color without changing border width

查看:42
本文介绍了更改边框颜色而不更改边框宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我更改输入文本边框的颜色时,边框宽度似乎更改为.我怎样才能避免这种情况?

When I change color of input text border, the border width seems to change to. How can I avoid this?

border-color: orange;

我也试过

border: 1px solid orange

宽度和原来输入的不一样,高度修改了...

and the width is no like original input and the height is modified...

我想要和原版一模一样的,但有另一种颜色

I want exactly the same as original but with an another color

谢谢

推荐答案

你必须使用这个 css 样式:

You have to use this css style:

border: npx solid orange

n 是边框的大小(例如边框:5px 纯橙色)

n is the size of border (e.g. border: 5px solid orange)

这篇关于更改边框颜色而不更改边框宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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