这可能是一个绝对的初学者问题,但我在google.de中找不到答案。
如果我给出一个边框底部的颜色,它看起来会比我定义的要暗得多。在safari mobile中,它看起来就像我定义的那样。有没有办法影响这种行为?
border-bottom-width: 4px;
border-bottom-color: #f00;
-webkit-appearance: none;发布于 2021-11-14 20:45:27
看起来你的问题在于原始的Chrome/FF风格的输入--特别是边框。只需将border-style指定为solid,它将为您提供所需的输出
.testinput { border: 10px solid greenyellow;
margin: 80px 100px; } <!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>
https://stackoverflow.com/questions/69966487
复制相似问题