Skip to content Skip to sidebar Skip to footer

No Touch Event For Li Tag

I use touch monitor and html page (MS Windows 7 Pro Eng, IE8). And I discovered that touch fires when text area of li tag is tapped and the rest is ignored. How change it so even

Solution 1:

So I found working solution

Nothing is working but only  

So the li tag should look like this

<ulclass="nav"id="mainList"><liclass="touchedLi stripe-even"id="item0"><ahref="#">Club Yellow 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li><liclass="touchedLi stripe-odd"id="item1"><ahref="#">Club Yellow 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li><liclass="touchedLi stripe-even"id="item2"><ahref="#">Club Yellow 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li></ul>

And then the area of &nbsp; is a touchable area! :)

How you are gonna add &nbsp; it depends of your needs.

Solution 2:

What is your CSS? Try adding display: block to the a tag.

Post a Comment for "No Touch Event For Li Tag"