不是說jquery不用考慮兼容么,我這個(gè)在IE里怎么和其他瀏覽器顯示不一樣
<!DOCTYPE html>
<html>
<head>
? ? <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
? ? <title></title>
? ? <style>
? ? input {
? ? display ? ?: block;
margin ? ? : 10px;
padding ? ?: 10px;
background : #bbffaa;
border ? ? : 1px solid #ccc;
? ? }
? ? </style>
? ? <script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
</head>
<body>
? ? <h2>.attr()與.removeAttr()</h2>
? ? <h3>.attr</h3>
? ? <form>
? ? ? ? <input type="text" value="設(shè)置value" />
? ? ? ? <input type="text" value="獲取value"/>
? ? ? ? <input type="text" value="回調(diào)拼接value" />
? ? ? ? <input type="text" value="刪除value" />
? ? </form>
? ? <script type="text/javascript">
? $('input').attr('value','dd')
? ? </script>
</body>
</html>
2017-05-11
IE11也不行!
2017-04-27
兼容也是有個(gè)限度的。你的ie幾?。?/p>
2017-02-06
IE版本過低