<body onresize="alert('change size end.');">

解决方案 »

  1.   

    //=================================================
    onresize:
    invoke: Change the height or width of the object.re:The onresize event fires for block and inline objects with layout, even if document or CSS (cascading style sheets) property values are changed. Objects have layout when measurements such as the height and width attributes are set, or when the position of the object is set. Intrinsic objects, such as button, and windowed objects, such as window and iframe, fire as expected. This event does not fire for files with embedded controls
    //=================================================
    onresizeend OR onresizestart:
    invoke:Release the sizing handle of an object during a drag operation in a control selectionre:Only content editable objects can be included in a control selection. You can make objects content editable by setting the contentEditable property to true or by placing the parent document in design mode.
      

  2.   

    只有对象内容可编辑时onresizeend才有用,比如:设置div的contentEditable属性为true