Regarding the problem of setting pictures in cursor

PHP中文网
Release: 2017-06-09 11:08:10
Original
2761 people have browsed it

<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>
Copy after login

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>
Copy after login

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
Copy after login

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
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!