-5
我想在输入字段周围画一个橙色的边框,就像在图片中一样。 边框底部没有问题,但左右边框只有全高的50%。我怎样才能做到这一点?如何使边界这么长?
Here you see what I would like to reach.
下面的代码是我做到了。由于@craig
.input{
-webkit-border-image:linear-gradient(to top,black, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 50%) 1 50%;
-moz-border-image:linear-gradient(to top,black, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 50%) 1 50%;
-o-border-image:linear-gradient(to top,black, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 50%) 1 50%;
border-image:linear-gradient(to top, black, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 50%) 1 50%;
}
<div>
<input name="email" class="input" type="email" required=""placeholder="Email">
</div>
你试过了吗? Posto你的代码。 –