丑陋的按钮 [英] Ugly button

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

问题描述

以下html创建了一个带有两个输入按钮的页面 - 第一个是

一个小按钮,第二个是一个更大的按钮,因为它有一个更长的价值
。在Internet Explorer 6中,第二个按钮(btn2,

大值)的边框比第一个按钮厚得多。


我怎样才能获得两个按钮看起来一样,不管尺寸值是什么?
的值参数?我希望btn2与btn1看起来一样。


< html>

< body>

<输入类型=”按钮"名称= QUOT; BTN1" value =" Small value"

< input type =" button"名称= QUOT; BTN2" value ="具有非常大的按钮

值">

< / body>

< / html>

The following html creates a page with two input buttons - the first is
a small button and the second is a much larger button because it has a
longer value. In Internet Explorer 6 the second button (btn2, with the
large value) has a much thicker border than the first button.

How can I get the two buttons to look the same, regardless of the size
of the value parameter? I want btn2 to look the same as btn1.

<html>
<body>
<input type="button" name="btn1" value="Small value">
<input type="button" name="btn2" value="Button with a very large
value">
</body>
</html>

推荐答案

AndyZa写道:
以下html创建一个带有两个输入按钮的页面 - 第一个
是一个小按钮,第二个是一个更大的按钮,因为它具有更长的值。在Internet Explorer 6中,第二个按钮(btn2,
值较大)的边框比第一个
按钮的边框厚得多。

如何让两个按钮看起来同样,无论值参数的大小如何?我希望btn2看起来和btn1一样。

< html> <身体GT; < input type =" button"名称= QUOT; BTN1" value =" Small value"
< input type =" button"名称= QUOT; BTN2" value ="具有非常大的
值的按钮"> < /体> < / html>
The following html creates a page with two input buttons - the first
is a small button and the second is a much larger button because it
has a longer value. In Internet Explorer 6 the second button (btn2,
with the large value) has a much thicker border than the first
button.

How can I get the two buttons to look the same, regardless of the
size of the value parameter? I want btn2 to look the same as btn1.

<html> <body> <input type="button" name="btn1" value="Small value">
<input type="button" name="btn2" value="Button with a very large
value"> </body> </html>



从这里开始,两个按钮似乎都具有相同的边框厚度,

我是否使用IE6或FF1.5.0查看它们。 2.


关于边境的业务是红鲱鱼,你只需要

按钮看起来更相似;或者你真的是说你想让两个

按钮具有相同的边框厚度?


-

杰克。


From here, both buttons seem to have the same thickness of border,
whether I view them using IE6 or FF1.5.0.2.

Was the business about borders a red herring, and you just want the
buttons to look more alike; or did you really mean that you want the two
buttons to have equal border-thicknesses?

--
Jack.


AndyZa写道:
AndyZa wrote:
以下html创建一个带有两个输入按钮的页面


就这样停止。 < input type =" button">没有添加任何功能但是

肯定会导致无障碍问题。

- 第一个是一个小按钮,第二个是一个更大的按钮,因为它有一个
更长的价值。


嗯,你还有一个毫无意义的长期价值。但真正的

问题是< input type =" button">的用户。或者,实际上,没有披露您的电子邮件地址

。沟通,或不沟通;没有尝试。

无论值参数的大小如何,我怎么能让两个按钮看起来一样?
The following html creates a page with two input buttons
Just stop doing so. <input type="button"> adds no functionality but
surely causes accessibility problems.
- the first is
a small button and the second is a much larger button because it has a
longer value.
Well, you additionally have a pointlesssly long value. But the real
problem is the user of <input type="button"> or, really, not disclosing
your E-mail address. Communicate, or do not communicate; there is no try.
How can I get the two buttons to look the same, regardless of the size
of the value parameter?




你不是。请参阅常见的CSS警告。


可能性根本不应使用表格。



You don''t. See the usual CSS caveats.

The odds are that you should not use forms at all.


>从这里开始,两个按钮似乎具有相同的边框厚度,
> From here, both buttons seem to have the same thickness of border,
我是否使用IE6或FF1.5.0.2查看它们。


在WinXP SP2上的IE6中,较大的按钮边框比

较小的按钮更粗。

是关于边界的业务一只红鲱鱼,你只想让
按钮看起来更相似;或者你真的是说你想让两个
按钮具有相同的边框厚度吗?
whether I view them using IE6 or FF1.5.0.2.
In IE6 on WinXP SP2 the larger button has a thicker border than the
smaller button.
Was the business about borders a red herring, and you just want the
buttons to look more alike; or did you really mean that you want the two
buttons to have equal border-thicknesses?




我希望IE6中的按钮看起来一样(即无论它们有多大,都有相同的

边框厚度。



I want the buttons to look the same in IE6 (i.e. have the same
border-thickness) regardless of how big they are.


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

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