Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Link Color in Body Tag später "ausschalten"?

Empfohlene Antworten

Veröffentlicht

Hi!

Und mal wieder habe ich keinen Plan von der Materie :rolleyes: Folgendes: Ich habe (mußte) im Body Tag die Farben für Link, visited Link usw. vorgeben. Jetzt habe ich eine einzige Stelle im ganzen Webauftritt wo die farbe anders sein soll. Wenn ich allerdings dem Wort (steht in einem Tabellenfeld) per font color eine andere Farbe zuweisen will, reagiert er nicht. Er reagiert nur auf Font Art, aber nicht auf die farbe :( Klar, weil er vom Body Tag ja eine andere Vorgabe bekommt. Kann ich das nicht explizit nur für diese eine Stelle unschädlich machen? div taugte leider nix.

Ideas?

2-helpless

Ahoi,

schick mir mal bitte den Quelltext. ;)

ich glaube was digitron meint ist, das du statt der farbangaben im body tag, das ganze über style sheets erledigt.beispiel:


<html>

<head>

<style>

<!--

a { color:#0000ff; }

a.ausnahme {color:#ff0000; }

a:visited { color:#ffff00;}

a:hover {color:#ffffff; }

a:active {color:#00ff00; }

//-->

</head>

<body>

<a href="*.html">links 1</a>

<a href="*.html" class="ausnahme">link 2</a>

</body>

</html>

letztendlich hätten dann alle links die farbe blau, bis auf denen, in dessen tag sowas wie class="ausnahme" steht. die anderen angaben beziehen sich auf besuchte, gerade mit maus drüber und gerade gedrückte link. ob da die zusätzlich einteilung wie oben auch geht weiß ich nicht.

Nach diesem Prinzip...

<style type="text/css">

<!--

body.hintergrund {background-image: url(Kalebassen_Nebel.jpg); color: white;

background-attachment:fixed; margin-top:5%}

.rand {border: 10px double #0000FF;}

.def1 {text-align: left; font-size:70; }

.def2 {text-align: right; font-size:70;}

.def3 {text-align:center; text-valign: baseline;}

//-->

</style>

---------------------

Da war doch einer schneller....

---------------------

<FONT COLOR="#a62a2a" SIZE="1">[ 18. September 2001 08:56: Beitrag 1 mal editiert, zuletzt von WastlHammer ]</font>

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.