-2

/* 这里我只有一个带有 svg 的图像 */

 <!DOCTYPE html>
        <html>
        <body>
        <div>
          <img src="test.jpg" alt="Shirt Image" />
           <img   id="tt-mask" class="mask" src="mask11.png" alt="Mask Image" />
           <div   id="logo-mask" role="m ... z" ></div>
        </div>
        </body>
        </html>
4

1 回答 1

0

Well, you could just add a div wrapper around the svg element and put the click event on the div.

于 2013-05-12T07:29:35.293 回答