首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CSS边框颜色铬/firefox

问CSS边框颜色铬/firefox
EN

Stack Overflow用户
提问于 2021-11-14 19:33:22
回答 1查看 26关注 0票数 0

这可能是一个绝对的初学者问题,但我在google.de中找不到答案。

如果我给出一个边框底部的颜色,它看起来会比我定义的要暗得多。在safari mobile中,它看起来就像我定义的那样。有没有办法影响这种行为?

代码语言:javascript
复制
border-bottom-width: 4px;
border-bottom-color: #f00;
-webkit-appearance: none;

appearence HTML

CSS

HTML

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-11-14 20:45:27

看起来你的问题在于原始的Chrome/FF风格的输入--特别是边框。只需将border-style指定为solid,它将为您提供所需的输出

​

代码语言:javascript
复制
.testinput { border: 10px solid greenyellow;
margin: 80px 100px; } 
代码语言:javascript
复制
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="./css/style.css"> <title>Titel</title> </head> <body> <input class="testinput"/> </body> </html>

​

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69966487

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档