Javascript.RU

Создать новую тему Ответ
 
Опции темы Искать в теме
  #1 (permalink)  
Старый 21.01.2010, 16:14
Аватар для micscr
Профессор
Отправить личное сообщение для micscr Посмотреть профиль Найти все сообщения от micscr
 
Регистрация: 10.09.2009
Сообщений: 1,566

Выделение на карте
Разбираю один пример. В Firefox, Chrome работает как задумано авторами, а в IE6, Opera не выделяет рамкой лица.
Посмотреть проблему здесь
Код :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Image Maps</title>


<style type="text/css">

#pic {
  width: 640px;
  height: 425px;
  position: relative;
}

#pic ul {
  margin: 0;
  padding: 0;
  list-style: none;
}


#pic a {
  position: absolute;
  width: 100px;
  height: 120px;
  text-indent: -1000em;
}

#pic a:hover {
  border: 1px solid #fff;
}

#pic .rich a {
  top: 15px;
  left: 95px;
}

#pic .andy a {
  top: 115px;
  left: 280px;
}

#pic .jeremy a {
  top: 250px;
  left: 425px;
}

<!--
-->
</style>
</head>

<body>

<div id="pic">
<img src="images/group-photo.jpg" width="640" height="425" alt="Richard, Andy and Jeremy" />
<ul>
<li class="rich"><a href="http://www.clagnut.com/" title="Richard Rutter">Richard Rutter</a></li>
<li class="andy"><a href="http://www.andybudd.com/" title="Andy Budd">Andy Budd</a></li>
<li class="jeremy"><a href="http://www.adactio.com/" title="Jeremy Keith">Jeremy Keith</a></li>
</ul>
</div>


</body>
</html>

Решил проблему так:
#pic a {
  position: absolute;
  width: 100px;
  height: 120px;
  text-indent: -1000em;
  background-image:url(images/spacer.gif); /*!!!  прозрачный 1x1*/
}

Но хотел бы знать в чем суть проблемы.
#pic a {display:block} не помогало.
Ответить с цитированием
Ответ



Опции темы Искать в теме
Искать в теме:

Расширенный поиск


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Как убрать выделение в Опере у div, получившего фокус ? spa_2002 Opera, Safari и др. 5 03.09.2009 10:42
Выделение одиночных тэгов Pattern Events/DOM/Window 7 26.05.2009 23:29
Выделение строки <select> при выборе другого <select> simbion Элементы интерфейса 12 05.05.2009 03:43
Google map. Нарисовать на карте иконку. Flake Элементы интерфейса 1 21.11.2008 08:04
выделение в форме limansqui Firefox/Mozilla 0 05.08.2008 19:02