CSS block page Double-click to select text----solve using font icons to quickly switch between carousel plots with background blocks

Source: Internet
Author: User

Today in the use of jquery to make a carousel map, found that the Quick click the left-right button to switch the picture, the text icon will be the default double-click the selected state will have a blue or white background color block, this is the result of double-click the text selected, how to solve?

IE and chrome under the same method, the corresponding element is added onselectstart= "return false;" However, this does not work under Firefox, but Firefox can use CSS style to achieve this effect, that is, to add-moz-user-select:none, it is compatible with Ie,google,firefox, that is, the code is as follows:

1 <div class= "Picbox" onselectstart= "return false;" style= "-moz-user-select:none;" > Screen Double-click the area of the selected text </div>

In this way, the text in the Div will not be double checked.

CSS block page Double-click to select text----solve using font icons to quickly switch between carousel plots with background blocks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.