我刚刚完成了网站的 PSD 设计,但卡在了文本字段中。
我如何获得一个文本字段来保持背景图像圆 Angular 的大小?
也许您可以使用类似于滑动门技术的东西? http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
最佳答案
文本字段实际上不需要圆 Angular ,环绕 DIV 元素的背景图像需要。
“性感按钮”教程将起作用 - 而不是在跨度内包含文本(如教程中所述),放入您的输入框。为您的输入设置 border:0
和 background-color:transparent
。
关于使用图像的 CSS 可伸缩文本输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7933847/