定位固定输入

时间:2012-12-24 08:42:31

标签: input position fixed

我有<input type="button" /><input type="text" />

enter image description here

如何在文本框的左侧加上加号,以便它始终存在,无论在浏览器上进行缩放......?

1 个答案:

答案 0 :(得分:1)

您应该将两个控件都放在<div>标签中..并设置div的宽度,以便它始终保持固定大小,与浏览器的缩放无关。

然后将css应用于按钮:#buttonID { float:left; }

相关问题