IE输入按钮的大小 [英] Size of IE input button

查看:127
本文介绍了IE输入按钮的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的html中有以下内容:


< input type =" button" value =" Short" />

< input type =" button" value ="此按钮上的文本非常长/>


它在html表单上提供了两个按钮。我的问题是在IE中

的长度,从botton上的文字开始/结束(horisontally)

到按钮的边框,取决于长度

按钮上的文字。也就是说,我的两个按钮之间的长度差异是

不仅是两个文本中长度的差异(短和

非常长的文本在这个按钮)上,导致文本

和按钮边框之间的边距对于长按钮的按钮来说也要大得多。

长文本。


我希望从按钮的左边界到固定长度的

文本开始,文本从哪里结束到右边

带按钮。


我该怎么办?我尝试了很多不同的风格等等。但是

没有什么帮助...


Thanx很多...


Steff

Hi

I have the following in my html:

<input type="button" value="Short"/>
<input type="button" value="Very long text on this button"/>

It gives two buttons on the html form. My problem is that in IE the
length, from where the text on the botton starts/ends (horisontally)
to the border of the button, depends on the length of the text on the
button. That is, the difference in length between my two buttons is
not only the diffenrece in the lenght of the two texts ("Short" and
"Very long text on this button"), cause the margin between the text
and the borders of the button is also much larger for the button with
the long text.

I would like a fixed length from the left border of the button to
where the text starts, and from where the text ends to the right
borden of the button.

How do I do that? I have tried alot of different stylings etc. But
nothing helps...

Thanx alot...

Steff

推荐答案

Per Steffensen于2004年11月19日在

comp.infosystems写道。 www.authoring.stylesheets:
Per Steffensen wrote on 19 nov 2004 in
comp.infosystems.www.authoring.stylesheets:
我想要一个固定的长度来自按钮的左边框
文本开始的位置,以及文本从哪里结束到右边
带按钮。

我该怎么做?我已经尝试了很多不同的风格等。但
没有任何帮助...
I would like a fixed length from the left border of the button to
where the text starts, and from where the text ends to the right
borden of the button.

How do I do that? I have tried alot of different stylings etc. But
nothing helps...




玩价值观:


< input type =" button"值= QUOT;短" style =" padding:0 85px;">< br>

< input type =" button" value ="此按钮上的文字很长

style =" padding:0 65px;">

< br>

< br>

< br>

< input type =" button"值= QUOT;短" style =" width:300px;">< br>

< input type =" button" value ="此按钮上的文字很长

style =" width:300px;">

< br>

< br>

< br>

< input type =" button"值= QUOT;短" style =" width:50px;">< br>

< input type =" button" value ="此按钮上的文字很长

style =" width:180px;">

< br>

< br>

< br>

< input type =" button" value =" Short">< br>

< input type =" button" value ="此按钮上的文字很长>

-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数,

但请让我们继续讨论新闻组)



Play with the values:

<input type="button" value="Short" style="padding:0 85px;"><br>
<input type="button" value="Very long text on this button"
style="padding:0 65px;">
<br>
<br>
<br>
<input type="button" value="Short" style="width:300px;"><br>
<input type="button" value="Very long text on this button"
style="width:300px;">
<br>
<br>
<br>
<input type="button" value="Short" style="width:50px;"><br>
<input type="button" value="Very long text on this button"
style="width:180px;">
<br>
<br>
<br>
<input type="button" value="Short"><br>
<input type="button" value="Very long text on this button">
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)


2004年11月19日星期五,Evertjan。写道:
On Fri, 19 Nov 2004, Evertjan. wrote:
使用值:

< input type =" button"值= QUOT;短" style =" padding:0 85px;">< br>
Play with the values:

<input type="button" value="Short" style="padding:0 85px;"><br>




你有什么打算调整em单位文本的容器大小?



What have you got against sizing containers for text in em units?


2004年11月19日星期五19:26:34 +0000,Alan J. Flavell< fl ***** @ ph.gla.ac.uk>

写道:
On Fri, 19 Nov 2004 19:26:34 +0000, Alan J. Flavell <fl*****@ph.gla.ac.uk>
wrote:
2004年11月19日星期五,Evertjan。写道:
On Fri, 19 Nov 2004, Evertjan. wrote:
使用值:

< input type =" button"值= QUOT;短" style =" padding:0 85px;">< br>
Play with the values:

<input type="button" value="Short" style="padding:0 85px;"><br>



你有什么打算在em单位中调整文本容器的大小?



What have you got against sizing containers for text in em units?




Gee,艾伦,这太有意义了! ;)



Gee, Alan, that would make too much sense! ;)


这篇关于IE输入按钮的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆