Erdogans Klucis Posted April 20, 2006 Report Share Posted April 20, 2006 formā ir selects selectā opšenam mēģinu pielikt CSS stilu, stils, protams, ir definēts. Taču <option selected class='blabla'> tjipa vajadzētu mainīt krāsu - nestrādā Google uz meklējumu "option selected class" izdod > 200 adreses, kas saka, kā tā, kā es daru, ir labi. http://www.google.lv/search?q=%22option+se...=&start=10&sa=N starp citu, <option class='blabla'> - strādā, krāsu maina. Link to comment Share on other sites More sharing options...
eglitis Posted April 20, 2006 Report Share Posted April 20, 2006 (edited) Vajadzētu redzēt pilnu kodu. Un XHTML raksta <option selected[b]='selected'[/b] class='blabla'>x</option> , kaut gan tas varētu nebūt pie vainas. Edited April 21, 2006 by eglitis Link to comment Share on other sites More sharing options...
Delfins Posted April 21, 2006 Report Share Posted April 21, 2006 Man gan viss kārtībā... PS: lieto " pie html atribūtu vērtībām.. Link to comment Share on other sites More sharing options...
ZXpower Posted April 21, 2006 Report Share Posted April 21, 2006 Vo vo - izskataas, ka vareetu buut probleema ar apostrofiem vietaa, kur vajag peedinjas. Link to comment Share on other sites More sharing options...
bubu Posted April 21, 2006 Report Share Posted April 21, 2006 (x)html'am ir pofig apostrofi vai pēdiņas. Abi ir atļauti. Link to comment Share on other sites More sharing options...
Delfins Posted April 21, 2006 Report Share Posted April 21, 2006 Man gan validators bļāva - ka lai liekot labāk " nekā ' Link to comment Share on other sites More sharing options...
eglitis Posted April 21, 2006 Report Share Posted April 21, 2006 By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39). (no HTML 4.01 specifikācijas) Link to comment Share on other sites More sharing options...
bubu Posted April 21, 2006 Report Share Posted April 21, 2006 SGML imo neattiecāc uz XHTML. Uz XHTMl attiecās XML specifikācija. Par XHTML jāskatās te: http://www.w3.org/TR/xhtml1/#strict A Strictly Conforming XHTML Document is an XML document that requires only the facilities described as mandatory in this specification. Such a document must meet all of the following criteria: par XML: http://www.w3.org/TR/2004/REC-xml-20040204/#NT-AttValue [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" Delfin: laikam sliktu validatoru lietoju :) Link to comment Share on other sites More sharing options...
eglitis Posted April 21, 2006 Report Share Posted April 21, 2006 bubu, nekur nav teikts, X vai ne-X Link to comment Share on other sites More sharing options...
bubu Posted April 21, 2006 Report Share Posted April 21, 2006 Laikam šite pamanīju ;) Vajadzētu redzēt pilnu kodu. Un XHTML raksta ... Link to comment Share on other sites More sharing options...
Recommended Posts