search

Home  >  Q&A  >  body text

javascript - After binding the window.resize event to an element, the previously set cursor attribute becomes invalid.

(Under IE) I bound a click event to an img element to set the cursor:url('xxx') style of this image. If I don't bind the window.resize event, I click this img The element can display different cursor:url('xxx') and the mouse can display the corresponding icon. However, once I bind the window.resize event and I click on the image, the cursor:url('xxx') will be replaced. But the default shape of the mouse is just an arrow. I have to move the mouse before its shape changes. What is the reason for this?

某草草某草草2745 days ago900

reply all(1)I'll reply

  • 某草草

    某草草2017-05-19 10:38:14

    Ie’s rendering mechanism problem. In some cases, the size is changed and the content is modified. There will always be problems

    reply
    0
  • Cancelreply