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.
我有一个<input type="button" />和一个<input type="text" />
<input type="button" />
<input type="text" />
如何将加号放在文本框的左侧,以便它始终存在,无论在浏览器上进行缩放...?
您应该将两个控件都放在一个<div>标签中。并设置 div 的宽度,使其始终保持固定大小,与浏览器的缩放无关。
<div>
然后将 css 应用于按钮:#buttonID { float:left; }
#buttonID { float:left; }