日期:2014-05-16 浏览次数:20705 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IE下disabled属性的异常</title>
</head>
<body>
<div style="background:#DDD;">
None of Disabled
<div><a href="#" style="color:blue;">Anchor Element</a></div>
<p style="background:gold;">Paragraph Element</p>
<input type="text" /><input type="submit" onclick="alert('A');" />
<input type="checkbox" onclick="alert('B');" />
</div>
<br />
<div style="background:#CCC;">
Part of Disabled
<div><a href="#" disabled="disabled">Anchor Element</a></div>
<p style="background:gold;">Paragraph Element</p>
<input type="text" disabled="disabled" /><input type="submit" disabled="disabled" onclick="alert('A');" />
<input type="checkbox" onclick="alert('B');" disabled="disabled" />
</div>
<br />
<div disabled="disabled" style="background:#BBB;">
All Disabled
<div><a href="#">Anchor Element</a></div>
<p style="background:gold;">Paragraph Element</p>
<input type="text" /><input type="submit" onclick="alert('A');"/>
<input type="checkbox" onclick="alert('B');" />
</div>
</body>
</html>