Llegando muy tarde a esta fiesta, pero puede usar los selectores de atributos.
En su caso, para apuntar el elemento class='a.b'
, que puede usar:
[class~="a.b"] {...}
// or
span[class~="a.b"] {...}
Además, aquí está la lista completa de los selectores de atributos.
Atributo Selector presente
// Selects an element if the given attribute is present
// HTML
<a target="_blank">...</a>
// CSS
a[target] {...}
atributo es igual a Selector de
// Selects an element if the given attribute value
// exactly matches the value stated
// HTML
<a href="http://google.com/">...</a>
// CSS
a[href="http://google.com/"] {...}
atributo contiene Selector
// Selects an element if the given attribute value
// contains at least once instance of the value stated
// HTML
<a href="/login.php">...</a>
// CSS
a[href*="login"] {...}
Attribute comienza con Selector
// Selects an element if the given attribute value
// begins with the value stated
// HTML
<a href="https://chase.com/">...</a>
// CSS
a[href^="https://"] {...}
Attribute Termina con selector de
// Selects an element if the given attribute value
// ends with the value stated
// HTML
<a href="/docs/menu.pdf">...</a>
// CSS
a[href$=".pdf"] {...}
Atributo Spaced Selector
// Selects an element if the given attribute value
// is whitespace-separated with one word being exactly as stated
// HTML
<a href="#" rel="tag nofollow">...</a>
// CSS
a[rel~="tag"] {...}
Atributo con guión Sele Héctor
// Selects an element if the given attribute value is
// hyphen-separated and begins with the word stated
// HTML
<a href="#" lang="en-US">...</a>
// CSS
a[lang|="en"] {...}
Source: learn.shayhowe.com
Lo demente sistema generará un nombre de clase, tales? – SLaks
Parcialmente engañado, pero probablemente responda la pregunta: http://stackoverflow.com/questions/448981/what-characters-are-valid-in-css-class-names –
sistema loco: los nombres de las clases son claves del archivo de propiedades.Los diferentes archivos de propiedades para diferentes idiomas permiten un formato dinámico basado en el mismo contenido independiente del lenguaje pero semánticamente. – mut1na