简体   繁体   中英

How to clear touch screen "touched" button focus, active, hover

Trying to figure out how to reset a button back to the "untouched" state. I am using a button as:

    <div id="service-control-buttons" data-role="controlgroup" data-type="horizontal">
        <a href="#" id="service-previous" data-role="button" data-icon="arrow-l">Prev</a>
        <a href="#" id="service-next" data-role="button" data-icon="arrow-r" data-iconpos="right">Next</a>
    </div>

To prevent this, you can customize the hover effects for touch screens using the following @media in you CSS file.

@media (hover: none) and (pointer: coarse) {
   /* Add hover styles here */
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM