Solution (Clean Solution)
Date of the Solution
Fri Jul 17 17:40:26 2009
Fixed Versions
all of the affected
Description
Since we now know what is causing the cursor not to load in IE, the solution becomes obvious - make the path to cursor "absolute" (i.e. starting from web root):
Due to the nature of the bug, the fixed demo is located on a separate page.
- HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test</title>
<link rel="stylesheet" href="../b/sheet_fixed.css" type="text/css" media="screen,tv,projection">
<div>TEST</div>
- CSS Code:
div{
height: 500px;
width: 500px;
margin: 20px auto;
cursor: url(/demos/cursor/b/cursor.cur), crosshair;
background: #f00;
}
The cursor property url() now has an "absolute" path and it works in all browsers. Note: if changing the path this way is not an option for you, simple use conditional comments to feed a different url() to IE - the one that is relative to the HTML document.