a:专注于IE6 [英] a:focus in IE6

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

问题描述

以下样式规则产生了在Opera中突出显示用户当前正在键入的文本框的所需效果。


< style type = " text / css">

输入:focus {background:yellow;}

< / style>


....


< form>

< table>

< tr class =" required"> ;

< td>名字:< / td>

< td class =" input">

< input type =" text"名称= QUOT; userFName"大小= QUOT; 60" maxlength =" 100"

< / td>

< / tr>

< / table>

< / form>


但在IE6中什么都不做。这显然是IE中的一个错误,但它是一个回合它的方式吗?我已经尝试搜索过去的帖子了!

The following style rules produces the desired effect of highlighting
the text box a user is currently typing, in Opera.

<style type="text/css">
input:focus {background: yellow;}
</style>

....

<form>
<table>
<tr class="required">
<td>First name:</td>
<td class="input">
<input type="text" name="userFName" size="60" maxlength="100">
</td>
</tr>
</table>
</form>

But in IE6 does nothing. This is obviously a bug in IE but is the a
way round it? I''ve tried searching through past posts already!

推荐答案

David写道:
David wrote:
以下风格规则产生了在Opera中突出显示用户当前正在键入的文本框所需的效果。
输入:focus {background:yellow;}
但在IE6中什么都不做。
The following style rules produces the desired effect of highlighting
the text box a user is currently typing, in Opera. input:focus {background: yellow;} But in IE6 does nothing.




最原始的现代限制浏览器。


IIRC:

onfocus =" this.style.backgroundColor =''yellow'';"

onblur =" this.style.backgroundColor ='''';"


或者你可以有一个window.onload = function(){}来做

document.getElementsByTagName(''input'')并设置

你的JavaScript事件。


-

David Dorward http://dorward.me.uk/


David:
David:
但在IE6中什么都不做。
But in IE6 does nothing.




David Dorward< do ***** @ yahoo.com>写道:

最原始的现代的限制浏览器。



David Dorward <do*****@yahoo.com> wrote:
Limitation of the most primitive of "modern" browsers.




很高兴在升级您的浏览器上转换表格。口头禅。 ;-)


-

我的来自地址完全是假的。回复地址是真实的,但

可能只是暂时的。回复usenet发布在同一个地方

你读到你回复的消息。



It is nice to turn the tables on the "upgrade your browser" mantra. ;-)

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you''re replying to.


嘿90%以上的互联网用户不能错!
Hey 90%+ of internet users cant be wrong!


这篇关于a:专注于IE6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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