输入字段的大小可以设置为百分比值吗? [英] Can the size of input fields be set to percent values?
本文介绍了输入字段的大小可以设置为百分比值吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在居中时,我无法创建覆盖浏览器窗口宽度80%的输入字段。
I am unable to create an input field which covers 80% of the width of the browser window while being centered.
<input style="margin-right:10%; margin-left:10%;" size="100%">
仅在浏览器最大化时起作用。
only works when the browser is maximized.
推荐答案
尝试一下
<input type="text" id="url" NAME="otherSite" style="width:70%" value=""/>
这篇关于输入字段的大小可以设置为百分比值吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文