Jump to content
  • 0

Как сделать ссылку такого вида


nUKe
 Share

Question

11 answers to this question

Recommended Posts

  • 0

Можно, но через попу.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
* {margin:0;padding:0;}
a {text-decoration:none;color:white;word-spacing:-4px;}
</style>
</head>
<body>
<a href="#">
<span style="background-color:red;">Q</span>
<span style="background-color:blue;">W</span>
<span style="background-color:green;">E</span>
<span style="background-color:red;">R</span>
<span style="background-color:blue;">T</span>
<span style="background-color:green;">Y</span>
</a>
</body>
</html>

Link to comment
Share on other sites

  • 0
Можно, но через попу.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
* {margin:0;padding:0;}
a {text-decoration:none;color:white;word-spacing:-4px;}
</style>
</head>
<body>
<a href="#">
<span style="background-color:red;">Q</span>
<span style="background-color:blue;">W</span>
<span style="background-color:green;">E</span>
<span style="background-color:red;">R</span>
<span style="background-color:blue;">T</span>
<span style="background-color:green;">Y</span>
</a>
</body>
</html>

Это немножко не то... так можно сделать изначальное выделение ссылок. А мне нужно чтоб так ссылка выглядела когда на не? наводишь курсор. Хех...

Link to comment
Share on other sites

  • 0

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
* {margin:0;padding:0;}
a {text-decoration:none;color:white;word-spacing:-4px;}
a .chr1{color: red;}
a .chr2{color: blue;}
a .chr3{color: green;}
a .chr4{color: red;}
a .chr5{color: blue;}
a .chr6{color: green;}

a:hover .chr1{color: white; background-color: red;}
a:hover .chr2{color: white; background-color: blue;}
a:hover .chr3{color: white; background-color: green;}
a:hover .chr4{color: white; background-color: red;}
a:hover .chr5{color: white; background-color: blue;}
a:hover .chr6{color: white; background-color: green;}
</style>
</head>
<body>
<a href="#">
<span class="chr1">Q</span>
<span class="chr2">W</span>
<span class="chr3">E</span>
<span class="chr4">R</span>
<span class="chr5">T</span>
<span class="chr6">Y</span>
</a>
</body>
</html>

а самому додуматься слабо? на сайте инфа полная ... вот все новички просто все просят. а сами думать не хотят

Link to comment
Share on other sites

  • 0

Девятилап, переборщил немного. Стили можно урезать до:

 <style>
* {margin:0;padding:0;}
a {text-decoration:none;word-spacing:-4px;}
a .chr1{color: red;}
a .chr2{color: blue;}
a .chr3{color: green;}

a:hover span {color: white;}
a:hover .chr1{background-color: red;}
a:hover .chr2{background-color: blue;}
a:hover .chr3{background-color: green;}
</style>

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