Home >Web Front-end >HTML Tutorial >Regarding the problem of setting pictures in cursor
<style type="text/css"> #leftArrow { cursor:url('http://s.xnimg.cn/imgpro/arrow/pre.cur'); } #rightArrow { cursor:url('http://s.xnimg.cn/imgpro/arrow/next.cur'); } </style>
The second situation: sometimes the picture can come out, sometimes it can’t.
<style type="text/css"> #leftArrow { cursor:url('../images/new/pre.cur'); } #rightArrow { cursor:url('../images/new/next.cur'); } </style>
Why?
The first is to directly online pictures, the pictures appear quickly, and the switching is also fast
www.cnblogs.com/xiaohui108/archive/2011/01/20/1940398.html
There are a few things to note: 1. The picture address is an absolute path, 2. The picture The size is preferably 32*32. Anyway, the size parsed under each browser is different
www.cnblogs.com/xiaohui108/archive/2011/01/20/1940398.html
There are a few things to note: 1. The image address is an absolute path, 2. The image The best size is 32*32. Anyway, the size parsed under each browser is different