Home >Web Front-end >HTML Tutorial >Regarding the problem of setting pictures in cursor

Regarding the problem of setting pictures in cursor

PHP中文网
PHP中文网Original
2017-06-09 11:08:102813browse

<style type="text/css"> 
 #leftArrow 
 { 
 cursor:url(&#39;http://s.xnimg.cn/imgpro/arrow/pre.cur&#39;); 
 } 
 #rightArrow 
 { 
 cursor:url(&#39;http://s.xnimg.cn/imgpro/arrow/next.cur&#39;); 
 } 
 </style>

The second situation: sometimes the picture can come out, sometimes it can’t.

 <style type="text/css"> 
 #leftArrow 
 { 
 cursor:url(&#39;../images/new/pre.cur&#39;); 
 } 
 #rightArrow 
 { 
 cursor:url(&#39;../images/new/next.cur&#39;); 
 } 
 </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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn