<title>菜鸟学堂(edu.jb51.net)</title>
<script src="http://edu.jb51.net/libs/jquery/1.10.2/jquery.min.js">
$(document).ready(function(){
$("button").click(function(){
alert("图片宽度: " + $("img").attr("width"));
<img src="img_pulpitrock.jpg" alt="Pulpit Rock" width="284" height="213">