English 中文(简体)
是否“投入类型=提交”能理解基础设施服务课。
原标题:Does "input type=submit" understand CSS classes?
  • 时间:2011-01-28 08:40:57
  •  标签:
  • html
  • css

我在试图确定形成纽州的方式方面有一些困难。 我的申请必须符合IE6,这意味着我只能使用属性选择。 相反,我给每个县增加了一个班子。

这里是我的一个县的法典。 净额自动生成代码

<input type="submit" name="ctl00$cphContenu$adminTabContainer$adminTabAccueil$ctl01" value="Valider" class="formBouton" />

在这里,CSS的定义应当影响到它。

*
{
    font-family:verdana, sans-serif;
    font-size:12px;
    margin:0;
    padding:0;
    border:0;
}

input, textarea, select
{
    border:2px inset #ccc;
}

.formBouton
{
    border:2px outset #ccc;
}

其结果是,有inset边界。 我的第一点是,我的风格表中的其他部分特别安全局是干涉的,因此,我与我的纽州适用的网络开发器工具bar进行了核对。 只使用两种选择:通用选择器和标签选择器。 没有适用不想要的定义,根本不考虑这一类别。 而我没有 why。

EDIT :由于IE6速度缓慢,我有时间看到实际发生的情况:我的班子按原意工作,但在装货时突然被拆除(因此,它没有出现在焊接器上)。 这实际上在我的《联合材料法典》中是一种ug。 感谢所有努力提供帮助的人:

问题回答

I suppose it s because in IE6 you cannot style the border with CSS as you like. A workaround is to remove the border of the button with border: 0 and to wrap the button with a span that as a border. You can see an example here: Any way to remove IEs black border around submit button in active forms?

I t been awhile since I ve programmed for IE6, but doesn t any button in a form trigger a submit action? Even if it s not an input submit?

另一种选择是,采用纽芬兰语,形成一种形式,就浮标采取行动。 这样,你就能够像你一样打上 but子。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签