IE 5.5,6只有OR一切但是那些 [英] IE 5.5, 6 only OR everything BUT those

查看:65
本文介绍了IE 5.5,6只有OR一切但是那些的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于输入要在基于网络的

目录中列出的项目的表单。在过去,我已经指示用户输入I和B标签

(这可以追溯到一段时间)到textareas中以获得斜体和粗体

面对目录。


现在我已经为IE创建了一个版本的页面,它使用了

的专有contentEditable =" true" div上的属性,它允许用户在div中输入文本并使用Ctrl-I和Ctrl-B来生成斜体和粗体。 (它也允许其他格式化,但是

我只对这两种效果感兴趣。)我正在使用display:none

textarea。 div有一个onblur将其当前的

内容传送到textarea。


我想在所有浏览器上使用这个单页。在IE浏览器上,我想要显示div和要隐藏的textarea,反之亦然

其他浏览器。假设我将textarea分配给一个名为ifIE>

的类,并将div分配给一个名为ifNotIE的类。什么样的kludge会导致

.ifIE {display:block; }

.ifNotIE {display:none; IE浏览器中的



.ifIE {display:none; }

.ifNotIE {display:block; }


其他地方?


-

Harlan Messinger

删除第一个点击我的电子邮件地址。

Veuillez?ter le premier point de mon adresse de courriel。

I''ve got a form used to enter items to be listed in a web-based
catalog. In the past, I''ve instructed the users to enter I and B tags
(this goes back a while) into the textareas to get italics and bold
face in the catalog.

Now I''ve created a version of the page for IE that uses the
proprietary contentEditable="true" attribute on a div , which enables
the user to enter text into the div and use Ctrl-I and Ctrl-B to
produce italics and boldfacing. (It permits other formatting too, but
I''m only interested in these two effects.) I''m using display: none on
the textarea. The div has an onblur that transfers its current
contents to the textarea.

I would like to use this single page on all browsers. On IE, I''d like
the div to appear and the textarea to be hidden, and vice versa on
other browsers. Suppose I assign the textarea to a class called "ifIE"
and the div to a class called "ifNotIE". What kind of kludge will
result in

.ifIE { display: block; }
.ifNotIE {display: none; }

in IE and

.ifIE { display: none; }
.ifNotIE {display: block; }

elsewhere?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.

推荐答案

Harlan Messinger写道:
Harlan Messinger wrote:
什么样的kludge将导致

.ifIE {display:block; }
.ifNotIE {display:none; IE浏览器中的

.ifIE {display:none; }
.ifNotIE {display:block; }

其他地方?
What kind of kludge will result in

.ifIE { display: block; }
.ifNotIE {display: none; }

in IE and

.ifIE { display: none; }
.ifNotIE {display: block; }

elsewhere?




我不是在评论这个想法是否合理。但要隐藏来自

IE的CSS,请使用子选择器。


..ifIE {display:block}

.. ifNotIE {display:none}


body> div.ifIE {display:none}

body> div.ifNotIE {display:block}


-

Brian(按照我的地址中的说明给我发电子邮件)
http://www.tsmchughs.com/

网上看到:

这个通过访问我的办公室并查看它来查看最佳页面

我的显示器。



I''m not commenting on whether the idea is sound. But to hide css from
IE, use the child selector.

..ifIE { display: block }
..ifNotIE { display: none }

body>div.ifIE { display: none }
body>div.ifNotIE { display: block}

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Seen on the web:
This page best viewed by coming over to my office and looking at it on
my monitor.


Brian< us ** ***@julietremblay.com.invalid-remove-this-part>写道:
Brian <us*****@julietremblay.com.invalid-remove-this-part> wrote:
Harlan Messinger写道:
Harlan Messinger wrote:
什么样的kludge会导致

.ifIE {display:block; }
.ifNotIE {display:none; IE浏览器中的

.ifIE {display:none; }
.ifNotIE {display:block; }

其他地方?
What kind of kludge will result in

.ifIE { display: block; }
.ifNotIE {display: none; }

in IE and

.ifIE { display: none; }
.ifNotIE {display: block; }

elsewhere?



我不是在评论这个想法是否合理。但要隐藏IE的IE,请使用子选择器。

。ifIE {display:block}
.ifNotIE {display:none}

body> div.ifIE {display:none}
body> div.ifNotIE {display:block}



I''m not commenting on whether the idea is sound. But to hide css from
IE, use the child selector.

.ifIE { display: block }
.ifNotIE { display: none }

body>div.ifIE { display: none }
body>div.ifNotIE { display: block}




谢谢。但是直到IE 7才好,对吧? :-)


-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。



Thanks. Only good till IE 7, though, right? :-)

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.


Harlan Messinger< hm ************** *****@comcast.net>写道:
Harlan Messinger <hm*******************@comcast.net> wrote:
Brian< us ***** @ julietremblay.com.invalid-remove-this-part>写道:
Brian <us*****@julietremblay.com.invalid-remove-this-part> wrote:
Harlan Messinger写道:
Harlan Messinger wrote:
什么样的kludge会导致

.ifIE {display:block; }
.ifNotIE {display:none; IE浏览器中的

.ifIE {display:none; }
.ifNotIE {display:block; }

其他地方?
What kind of kludge will result in

.ifIE { display: block; }
.ifNotIE {display: none; }

in IE and

.ifIE { display: none; }
.ifNotIE {display: block; }

elsewhere?



我不是在评论这个想法是否合理。但要隐藏IE的IE,请使用子选择器。

。ifIE {display:block}
.ifNotIE {display:none}

body> div.ifIE {display:none}
body> div.ifNotIE {display:block}



I''m not commenting on whether the idea is sound. But to hide css from
IE, use the child selector.

.ifIE { display: block }
.ifNotIE { display: none }

body>div.ifIE { display: none }
body>div.ifNotIE { display: block}



谢谢。但是直到IE 7才好,对吧? : - )



Thanks. Only good till IE 7, though, right? :-)




现在适用于IE6,Mozilla和Opera。我使用的是*而不是

body,因为这些项目都不是顶级的。没有任何问题,有什么问题,是吗?


-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。



Works nicely now with IE6, Mozilla, and Opera. I''m using * instead of
"body", though, since the items aren''t at the top level. There isn''t
any problem with that, is there?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.


这篇关于IE 5.5,6只有OR一切但是那些的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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