Windows Phone 7 Browser - Turn off the gray shading when links are clicked

后端 未结 4 870
忘了有多久
忘了有多久 2020-12-02 22:45

With the Windows Phone 7 Browser, when the user clicks a link, it is shaded with a gray rectangle for approximately 0.5 seconds. This is fine in generally, however, if you h

4条回答
  •  失恋的感觉
    2020-12-02 23:31

    The following solution seems to work (at least on the emulator). The gray shading needs the dimensions of the clicked element. If the element has zero width then there is no shading, while clicking the child elements still fires the element's click handler.

    
    
    
    

    The div can either float or be absolutely positioned. The child elements have to be absolutely positioned, otherwise the div acquires a width.

提交回复
热议问题