HTML Input (type=image) not working on Firefox 4

前端 未结 7 2025
说谎
说谎 2020-12-12 06:16

The above HTML code is for

7条回答
  •  一生所求
    2020-12-12 06:51

    You're basically abusing the to have a button with a background image. The represents an image map. The mouse position on the button is been sent as cmd_delete.x and cmd_delete.y parameters. But you are not interested in the mouse position. Replace it by a normal and use CSS to specify a background image. E.g.

    
    

    with

    input.delete {
        background-image: url('bin/images/common/delete.png');
        width: 20px;
        height: 20px;
        border: 0;
        cursor: pointer;
    }
    

    and check it as follows

    if (isset($_GET['cmd_delete'])) {
        // Delete button pressed.
    }
    

提交回复
热议问题