jquery选择器 直接设置 style
一句话就可以了:
如有帮助请在我的回答上点个【采纳】
<script src="jquery-1.10.1.js"></script> <script> $(function(){ $("img").css("width","400px").css("height","170px"); }); </script>