Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][XML]XHTML - arkusz stylów XML nie działa
tomxx
post
Post #1





Grupa: Zarejestrowani
Postów: 172
Pomógł: 27
Dołączył: 5.10.2013

Ostrzeżenie: (0%)
-----


Praktycznie nie mam pojęcia o XHTML.

Wpisałem taki kod:

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <?xml-stylesheet type="text/css" href="/style.css">
  3. <!DOCTYPE html>
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  5. <element>Element</element>
  6. </body>
  7. </html>


A w style.css:

  1. element{font-weight:bold}


Tekst w pliku XHTML nie jest pogrubiony (IMG:style_emoticons/default/sad.gif) . Dlaczego?...

Ten post edytował tomxx 22.12.2013, 17:46:50
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Scalak
post
Post #2





Grupa: Zarejestrowani
Postów: 63
Pomógł: 16
Dołączył: 21.03.2009

Ostrzeżenie: (0%)
-----


Kod
    <!DOCTYPE html>
    <html>
    <head>
    <style>
        element{font-weight:bold}
    </style>
    </head>
    <body>
    <element>Element</element>
    </body>
    </html>


poczytaj o załączaniu CSS'a w zew. pliku: http://www.w3schools.com/css/css_howto.asp

Ten post edytował Scalak 22.12.2013, 18:35:31
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 00:40