• Nie Znaleziono Wyników

Arkusze stylów – część 3

N/A
N/A
Protected

Academic year: 2021

Share "Arkusze stylów – część 3"

Copied!
21
0
0

Pełen tekst

(1)

Arkusze stylów – część 3

Technologie internetowe

Zofia Kruczkiewicz

(2)

1.Pseudoklasa :link dla znacznika <a>

Stan link- oznacza, że jeszcze nie

odwiedza no stron

(3)

Po najechaniu kursorem myszy na 1 link :hover

(4)

Po najechaniu kursorem myszy na 2 link :hover

(5)

Po najechaniu kursorem myszy na 3 link :hover

(6)

Po najechaniu kursorem myszy na 4 link :hover

(7)

Po najechaniu kursorem myszy na 5 link :hover

(8)

Po wybraniu stron każdym linkiem :visited

(9)

Po wyborze strony1 link :active

(10)

Po wyborze strony 2 link :active

(11)

Po wyborze strony 3 link :active

(12)

Po wyborze strony 5 link :active

(13)

Strona xhtml

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">

<head>

<meta http-equiv="content-type" content="text/html; charset= utf-8"/>

<title>Zewnętrzne arkusze stylów</title>

<link rel="stylesheet" href="styl8.css" type="text/css"></link>

</head>

<body>

<h1>Czym jest XHTML</h1>

<p> XHTML służy do tworzenia stron Internetowych. <br/>Pozwala on na:</p>

<ul type="circle">

<li><a href="b3.html">Wybrany link staje się szary</a></li>

<li><a href="c1.html" class="podkreslenie">

Wybrany link staje się podkreślony</a></li>

<li><a href="c3.html" class="wybor">Wybrany link zmienia styl napisu</a></li>

<li><a href="#" class="podswietlenie">Po wybraniu linku znika tekst</a></li>

<li><a href="b.html" class="ramka">Po wybraniu link podświetla się i znika tekst.</a></li>

</ul>

</body>

</html>

(14)

Plik styl8.css

a:link {text-decoration:none;color: red;}

a:visited {color: green;}

a:hover {text-decoration:none;color:gray;}

a:active {color: blue;}

a.podkreslenie {color: black;}

a.podkreslenie:visited {text-decoration:none;color: blue;}

a.podkreslenie:hover {text-decoration:underline;color: green;}

a.podkreslenie:active {color: red;}

a.podswietlenie:visited { color: gray; padding: 12px;}

a.podswietlenie:hover {color: white; background-color:white;padding: 12px;}

a.wybor { font-family: arial, helvetica, sans-serif; text-decoration: underline;}

a.wybor:hover {font-family: arial, helvetica, sans-serif; font-weight: bold;

text-decoration: underline; letter-spacing: 3px;}

a.ramka {background-color: #FFFFFF; color: #000000;

text-decoration: none; border: medium solid #000000;

font-family: Verdana, Arial, Helvetica, sans-serif;}

a.ramka:hover { background-color: #000000; color: #000000;

text-decoration: none; border: medium solid #0000FF;

font-family: Verdana, Arial, Helvetica, sans-serif;}

(15)

2. Pozycjonowanie linków

(16)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl"

lang="pl">

<head>

<meta http-equiv="content-type" content="text/html; charset= utf-8"/>

<title>Zewnętrzne arkusze stylów</title>

<link rel="stylesheet" href="styl9.css" type="text/css"></link>

</head>

<body>

<h1>Czym jest XHTML</h1>

<p> XHTML służy do tworzenia stron Internetowych.

<br/> Pozwala on na: </p>

<ul type="circle">

<li><a href="c1.html" class="podkreslenie">Wybor1</a></li>

<li><a href="c3.html" class="wybor">Wybor2</a></li>

<li><a href="#" class="podswietlenie">Wybor3</a></li>

<li><a href="b.html" class="ramka">Wybor4</a></li>

</ul>

</body>

</html>

(17)

a:link {text-decoration:none;color: red;}

a:visited {color: green;}

a:hover {text-decoration:none;}

a:active {color: blue;}

a.podkreslenie:hover { margin-left:100px}

a.podswietlenie:hover {position:relative;left:-20px}

a.wybor:hover {position:absolute;left:100px;top:150px}

a.ramka:hover {position:absolute;right:350px;top:155px;}

(18)
(19)
(20)
(21)

Cytaty

Powiązane dokumenty

Czas poddawał się ziemi, zmieniał blaski i mijał cicho jak liść ostateczny. Dni za mną biegły jak miotacze

Częstsze występowanie genotypów zawierających wariant A-308 genu TNF-a w grupie osób chorych na cukrzycę typu 2 z towarzyszącym nadciśnie- niem może przemawiać za

Styl ojciec z kolorem czerwonym anuluje kolor zielony stylu

przeglądarce (letter-spacing: 0.3em) Style alternatywny1 - wybrany w przeglądarce (letter-spacing: 0.3em). oraz

pppp {{{{ font font font----family font family family family:::: Arial, Arial, Arial, Arial, Helvetica, Helvetica, Helvetica, Helvetica, San San San San Serif Serif;;;; font Serif

[r]

gruppen können, wie schon erwähnt, primärer oder sekundärer Natur sein. Eine Entscheidung dieser Frage hofften wir durch Tritylierung des Aucubins zu erzielen. Bei

The Extended Computer Modern font leaves 12 slots to be assigned in the regional or national Full Extended CM fonts (in particular, for Vietnamese). In my opinion. this