Usando: antes y: después del selector CSS para insertar Html [duplicar]
Me pregunto si lo siguiente es posible. Sé que no funciona, pero tal vez no lo estoy escribiendo en la sintaxis correcta.
li.first div.se_bizImg:before{
content: "<h1>6 Businesses Found <span class="headingDetail">(view all)</span></h1>";
}
De todos modos de hacer esto?
151
1 answers
content
no soporta HTML, solo texto. Probablemente deberías usar jQuery o algo así.
Otro problema con su código es "
dentro de un bloque "
. Debe mezclar '
y "
(class='headingDetail'
).
Si content
soportara HTML, podría terminar en un bucle infinito donde content
se agrega dentro de content
.
212
Author: Erik Martino,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-03 06:51:08
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-03 06:51:08