Jump to content
  • 0

Проблема с IE


Guest CBE4KuH
 Share

Question

Guest CBE4KuH

Товарищи, подскажите почему ослик ну никак не хочет понимать следющий текст на CSS?

Итак.

HTML файл:

		
<div class="layer1">
 
</div>
<div class="divider1">
 
</div>
<div class="layer2">
 
</div>
<div class="divider2">
 
</div>
<div class="layer3">
 
</div>
<div class="divider3">
 
</div>
<div class="layer4">
 
</div>
<div class="divider4">
 
</div>
<div class="layer5">
 
</div>
<div class="divider5">
 
</div>
<div class="layer6">
 
</div>
<div class="divider6">
 
</div>
<div class="layer7">
 
</div>
<div class="divider7">
 
</div>
<div class="layer8">
 
</div>
<div class="divider8">
 
</div>
<div class="layer9">
 
</div>
<div class="divider9">
 
</div>
<div class="layer10">
 
</div>

А теперь CSS:


.divider1
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:20px;
}
.divider2
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:41px;
}
.divider3
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:62px;
}
.divider4
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:83px;
}
.divider5
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:104px;
}
.divider6
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:125px;
}
.divider7
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:146px;
}
.divider8
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:167px;
}
.divider9
{
display:inline;
position:absolute;
width:1px;
z-index:15;
border: 0px solid;
left:188px;
}
.layer1
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:20px;
left:0px;
z-index:10;
border: 0px solid;
}
.layer2
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:41px;
left:0px;
z-index:9;
border: 0px solid;
}
.layer3
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:62px;
left:0px;
z-index:8;
border: 0px solid;
}
.layer4
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:83px;
left:0px;
z-index:7;
border: 0px solid;
}
.layer5
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:104px;
left:0px;
z-index:6;
border: 0px solid;
}
.layer6
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:125px;
left:0px;
z-index:5;
border: 0px solid;
}
.layer7
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:146px;
left:0px;
z-index:4;
border: 0px solid;
}
.layer8
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:167px;
left:0px;
z-index:3;
border: 0px solid;
}
.layer9
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:188px;
left:0px;
z-index:2;
border: 0px solid;
}
.layer10
{
background-image: url('../images/star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:209px;
left:0px;
z-index:1;
border: 0px solid;
}

.layer1:hover,.layer2:hover,.layer3:hover,.layer4:hover,.layer5:hover,.layer6:ho
ver,.layer7:hover,.layer8:hover,.layer9:hover,.layer10:hover
{
background-image: url('../images/star_selected.png');
z-index:11;
}

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
Guest CBE4KuH

Только что нашёл информацию:

"В браузере Internet Explorer версии 6 и ниже псевдокласс hover работает только для ссылок."

Неужели это так?!?! :rolleyes:

Это можно как-то обойти?

Link to comment
Share on other sites

  • 0
Guest CBE4KuH

Сделал уже. Но херь какая-то твориться с z-index... Не хочет двигаться на первый план...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>New document</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<style type="text/css">
.layer1
{
background-image: url('star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:20px;
left:0px;
z-index:10;
border: 0px solid;
}
.layer2
{
background-image: url('star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:41px;
left:0px;
z-index:9;
border: 0px solid;
top:5px;
}
.layer1:hover,.layer2:hover
{
background-image: url('star_selected.png');
z-index:11;
}
</style>
</head>
<body>
<A href="#" class="layer1">
 
</A>
<A href="#" class="layer2">
 
</A>
</body>
</html>

Link to comment
Share on other sites

  • 0

Вот не работающий кусок кода.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>New document</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<style type="text/css">
.layer1
{
background-image: url('star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:20px;
left:0px;
z-index:10;
border: 0px solid;
}
.layer2
{
background-image: url('star_not_selected.png');
background-position: right top;
display:inline;
position:absolute;
width:41px;
left:0px;
z-index:9;
border: 0px solid;
top:5px;
}
.layer1:hover,.layer2:hover
{
background-image: url('star_selected.png');
z-index:11;
}
</style>
</head>
<body>
<A href="#" class="layer1">
 
</A>
<A href="#" class="layer2">
 
</A>
</body>
</html>

Link to comment
Share on other sites

  • 0

белая пустая страница, чего и следовало ожидать.

вы думаете нам так легко понять идею, не видя что именно не так??!

вам тяжело залить пример в интернет?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy