Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: marquee w XHTML 1.1 i CSS
Forum PHP.pl > Forum > Po stronie przeglądarki
Edd_s
Witam, mam taki problem, robię stronę w XHTML 1.1 i używam elementu <marquee> który nie jest w nim dozwolony, podczas walidacji trzymałem podpowiedź że <marquee> można to zastąpić CSS'em, tylko że ja nie wiem jak. Jeśli macie jakieś pomysły to piszcie będę wdzięczny.
mike
<marquee> nie dość że go nie ma w XHTML 1.1 (i dobrze) to nigdy w żadnej specfikacji czegoś takiego nie było tongue.gif
M$ sobie to wymyslił a nie W3C.

Możesz to zrobić w JS bo w CSS z tego co wiem nie da się tego zrobić.

Np.: Cross Browser marquee
Edd_s
w JS wiem że sie da, ale w walidatorze pisze że można za pomocą CSS

Tu jest co mi pisze:
Cytat
Error  Line 21 column 45: element "marquee" undefined.

..."stop"></div><div id="pasek"><marquee>.....

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    * incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    * by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    * by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.
bregovic
Jedyne co mozesz zrobić w CSS to text-decoration: blink. Ale nie rób tego. Nikt nie chce żeby mu coś blink'ało w oczy - na prawdę, uwierz mi.
dr_bonzo
Cytat
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).

Pisza ogolnie, ze niektore tagi mozna zastapic zazwyczaj ("usually") CSSem. Marquee wymagalo by np. dynamicznego zmieniania przesuniecia i wyciecia (clip) warstwy -- co jest do zrealizowania za pomoca JS, a nie samego css.
Przynajmniej ja nie spotkalem sie z rozwiazaniem tego w css.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.