儿童选择器?我不明白:( [英] Child selectors? I dont get it :(
问题描述
我尝试了一切。我甚至与opera和mozilla一起测试它。
(我主要使用IE 6)
它简化为下面的简单示例。
请告诉我,我对儿童选择器的理解有什么问题!我确实不知道:(
< html>
< head>
< style>
p> span {background-color:blue}
< / style>
< / head>
< body>
< p>
hello
< span>为什么不是这个蓝色?< / span>
你好
< / p>
< / body>
< / html> ;
谢谢,
Tom
I tried everything. I even tested it in combination with opera and mozilla.
(I use IE 6 mostly)
It''s reduced to the simple example below.
Please tell me what is wrong with my understaning of child selectors! I
realy dont know :(
<html>
<head>
<style>
p > span { background-color: blue }
</style>
</head>
<body>
<p>
hello
<span>why isnt this blue? </span>
hello
</p>
</body>
</html>
Thank you,
Tom
推荐答案
" news.pandora.be" < tm *** @ hotmail.com>写道:
"news.pandora.be" <tm***@hotmail.com> wrote:
我尝试了一切。我甚至将它与opera和mozilla结合使用。
(我主要使用IE 6) )
它简化为下面的简单示例。
请告诉我我的儿童选择器的问题有什么问题!我真的不知道:(
< html>
< head>
< style>
p> span {background-color:blue}
< / s tyle>
< / head>
< body>
< p>
你好
< span>为什么不是这个蓝色? < / span>
你好
< / p>
< / body>
< / html>
I tried everything. I even tested it in combination with opera and mozilla.
(I use IE 6 mostly)
It''s reduced to the simple example below.
Please tell me what is wrong with my understaning of child selectors! I
realy dont know :(
<html>
<head>
<style>
p > span { background-color: blue }
</style>
</head>
<body>
<p>
hello
<span>why isnt this blue? </span>
hello
</p>
</body>
</html>
在这里工作(Opera),不会在IE中工作,因为它不支持孩子
选择器。
-
Spartanicus
Works here (Opera), won''t work in IE as it doesn''t support child
selectors.
--
Spartanicus
Spartanicus写道:
Spartanicus wrote:
" ; news.pandora.be" < TM *** @ hotmail.com>写道:
"news.pandora.be" <tm***@hotmail.com> wrote:
我尝试了一切。我甚至与opera和mozilla一起测试它。
(我主要使用IE 6)
它简化为下面的简单示例。
请告诉我什么是我对儿童选择器的理解是错误的!我真的不知道:(
< html>
< head>
< style>
p> span {background-color :blue}
< / style>
< / head>
< body>
< p>
你好
< span>为什么不是这个蓝色?< / span>
你好
< / p>
< / body>
< / html>
I tried everything. I even tested it in combination with opera and mozilla.
(I use IE 6 mostly)
It''s reduced to the simple example below.
Please tell me what is wrong with my understaning of child selectors! I
realy dont know :(
<html>
<head>
<style>
p > span { background-color: blue }
</style>
</head>
<body>
<p>
hello
<span>why isnt this blue? </span>
hello
</p>
</body>
</html>
在这里工作(Opera),不会在IE中工作,因为它不支持孩子
选择器。
Works here (Opera), won''t work in IE as it doesn''t support child
selectors.
如果你有意使用它来隐藏IE,而不是
避免>周围的空格,因为IE5.0将会应用这种风格,如果
你留下空格。 />
-
Els
Mentehumanaécoopára-quedas; funciona melhor aberta。
And if you were using it on purpose to hide it from IE, than
avoid the spaces around >, for IE5.0 will apply the style if
you leave spaces.
--
Els
Mente humana é como pára-quedas; funciona melhor aberta.
On Sun,2004年2月22日06:12:41 GMT,news.pandora.be< tm *** @ hotmail.com>
写道:
On Sun, 22 Feb 2004 06:12:41 GMT, "news.pandora.be" <tm***@hotmail.com>
wrote:
我尝试了一切。我甚至与它一起测试了它歌剧和mozilla。
(我主要使用IE 6)
它简化为下面的简单例子。
请告诉我,我的儿童选择器的欠读有什么问题!我真的不知道:(
< html>
< head>
< style>
p> span {background-color :blue}
< / style>
< / head>
< body>
< p>
你好
< span>为什么不是这个蓝色?< / span>
你好
< / p>
< / body>
< / html>
I tried everything. I even tested it in combination with opera and mozilla.
(I use IE 6 mostly)
It''s reduced to the simple example below.
Please tell me what is wrong with my understaning of child selectors! I
realy dont know :(
<html>
<head>
<style>
p > span { background-color: blue }
</style>
</head>
<body>
<p>
hello
<span>why isnt this blue? </span>
hello
</p>
</body>
</html>
您测试的Opera版本是什么?在Opera 6.05和7.23中它是蓝色的。
IE虽然不懂儿童选择器。他们只有大约6年来一直在b $ b左右,微软不能快速做出反应。
-
Stephen Poley < >
这篇关于儿童选择器?我不明白:(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!