html/html5 中的自定义输入文本框
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10528000/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
A customized input text box in html/html5
提问by gopi1410
Actually, I want to implement a text box as shown in the figure:
其实我想实现一个如图所示的文本框:
I want that the user should be able to enter the number in the required space. Note that it would be transparent so that the background is visible. A solution involving html5 canvas would also be good.
我希望用户应该能够在所需的空间中输入数字。请注意,它将是透明的,以便背景可见。涉及 html5 画布的解决方案也不错。
So, is it possible to do this? If so, how?
那么,有可能做到这一点吗?如果是这样,如何?
回答by Christian
回答by ijse
Set <input>
border be only bottom side. Here is the demo, just like your picture shows.
将<input>
边框设置为仅底部。这是演示,就像您的图片所示。