Segnalazione: Select Oracle - Traduzione dei selettori css

In questo Forum potrete chiedere consigli (ma anche condividere le vostre conoscenze) sulla progettazione e realizzazione di siti. Scoprite con le nostre Muse i segreti del web design... e perché nessuno va a vedere quella paginetta che vi è costata tanta fatica. Html, xhtml, xml, css, php, asp, js, flash e tutto quel che ci gira attorno.

Moderatori: Supervisor, Moderatori Software e Programmazione

kluster
Dio maturo
Dio maturo
Messaggi: 2898
Iscritto il: 15 apr 2006 11:14

Segnalazione: Select Oracle - Traduzione dei selettori css

Messaggio da kluster »

Segnalo questa utility: Select Oracle
Cosa fa? Traduce la dicitura di alcuni selettori complessi (principalmente CSS3) in un formato + intuitivo.
Putroppo solo in inglese e spagnolo.

Es.

Codice: Seleziona tutto

body > ol > li p;
:not(a);
p:not(.section);
body > h2:not(:first-of-type):not(:last-of-type);
ul li:nth-child(2n+3):not(:last-child);
ol li:nth-child(-3n+9);
ol li:nth-child(7n-3);
button:not([DISABLED]);
html|*:not(:link);
lo script li traduce in questo modo:
Translation:
Selector 1: body > ol > li p
Selects any p element that is a descendant of a li element that is a child of an ol element that is a child of a body element.

Selector 2: *:not(a)
Selects any element which is not an A element.

Selector 3: p:not(.section)
Selects any p element without a class attribute that contains the word section.

Selector 4: body > h2:not(:first-of-type):not(:last-of-type)
Selects any h2 element that is not a first child of its type and that is not a last child of its type that is a child of a body element.

Selector 5: ul li:nth-child(2n+3):not(:last-child)
Selects any li element that is an odd numbered child starting with the third child and that is not a last child that is a descendant of an ul element.

Selector 6: ol li:nth-child(-3n+9)
Selects any li element that is one of every three children between the third and the ninth children that is a descendant of an ol element.

Selector 7: ol li:nth-child(7n-3)
Selects any li element that is one of every seven children starting with the fourth child that is a descendant of an ol element.

Selector 8: button:not([DISABLED])
Selects any button element without a DISABLED attribute.

Selector 9: html|*:not(:link)
Selects any element in namespace html whose target has been visited.

Selector 10: *
Selects any element.

Torna a “Linguaggi per Internet”