Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我两者都有textarea,而且input是我的形式。的边框input是阴影的,而 的边框textarea是实心的。如果我输入border: none;for textarea,那么根本就没有边界。我希望他们是一样的。我可以做吗?
textarea
input
border: none;
对于“阴影”边框,您最好完全摆脱边框并使用 box-shadow 代替。这是一个简单的例子:
input, textarea { border: none; box-shadow: 0 0 15px rgba(0,0,0,.4); }