Firefox - designMode: disable image resizing handles

后端 未结 6 1757
长情又很酷
长情又很酷 2020-12-14 10:51

How can I prevent the user from being able to resize an image in designMode? (disable the handles when image is clicked)

6条回答
  •  余生分开走
    2020-12-14 11:06

    Well, you cannot remove those resize handlers neither in Firefox nor IE... at least I couldn't find a solution.

    At the end I managed that in Firefox by editing some configuration files from FF installation folder and we don't want to do that, right?

    Anyway, if you want to disable resizing if images (but resize handlers will still be visible) just add some css style like:

    img {
        width: auto !important;
        height: auto !important;
    }
    

    regards, Mihailo

提交回复
热议问题