Foro de elhacker.net

Programación => Desarrollo Web => Mensaje iniciado por: Littl3 en 7 Mayo 2011, 16:17 pm



Título: CSS: cursor:hand; en firefox
Publicado por: Littl3 en 7 Mayo 2011, 16:17 pm
Buenas,

Estoy intentando mediante CSS cambiar el cursor en el hover de un div.

Hay mucha información en internet donde se dice que con un simple cursor:hand; en firefox funciona, no obstante lo estoy probando y no es así, incluso en elhacker.net se comenta esto en:
http://www.elhacker.net/trucos-mozilla-firefox.html (http://www.elhacker.net/trucos-mozilla-firefox.html)

¿Alguien sabe como hacerlo?

Gracias, un saludo.


Título: Re: CSS: cursor:hand; en firefox
Publicado por: Shell Root en 7 Mayo 2011, 19:08 pm
Código
  1. #divPoC:hover{
  2.   cursor:pointer;
  3. }
Código
  1. <div id = "divPoC">
  2.   <br/>
  3.   <h1>PoCing</h1>
  4.   <br/>
  5. </div>


Título: Re: CSS: cursor:hand; en firefox
Publicado por: Littl3 en 7 Mayo 2011, 23:36 pm
Lo estoy probando con firefox 4 y no funciona :S


Título: Re: CSS: cursor:hand; en firefox
Publicado por: xassiz~ en 7 Mayo 2011, 23:57 pm
Lo estoy probando con firefox 4 y no funciona :S
Testeado y funciona:
Código
  1. #divPoC:hover{
  2.   cursor:pointer;
  3. }
  4. </head>
  5. <div id="divPoC">
  6.   <br/>
  7.   <h1>Shell Root PoCing</h1>
  8.   <br/>
  9. </div>
  10. </body>
  11. </html>
  12.  

Aunque también te puede servir así:
Código
  1. </head>
  2. <div id="divPoC" onmouseover="this.style.cursor='pointer';">
  3.   <br/>
  4.   <h1>xassiz PoCing</h1>
  5.   <br/>
  6. </div>
  7. </body>
  8. </html>
  9.  

Saludos! :rolleyes: