Mobile-side problem solving [record]

Source: Internet
Author: User

Incompatibility of the box model

. Ctpflex {

Display:-webkit-box; /* Old-ios 6-, Safari 3.1-6 */
Display:-moz-box; /* Old-firefox 19-(buggy but mostly works) */
Display:-ms-flexbox; /* Tweener-ie 10 */
Display:-webkit-flex; /* New-chrome */
Display:flex; /* NEW, Spec-opera 12.1, Firefox 20+ */
}

. ul>li {
-webkit-box-flex:1; /* Old-ios 6-, Safari 3.1-6 */
-moz-box-flex:1; /* Old-firefox 19-* *
width:20%; /* for old syntax, otherwise collapses. */
-webkit-flex:1; /* Chrome */
-ms-flex:1; /* IE 10 */
Flex:1; /* NEW, Spec-opera 12.1, Firefox 20+ */
}


The MVVM framework builds a project when the package path is based on the configuration file (usually directly from the root directory, the front-end common relative path)
If the style is not noticed after packaging (boot file location) CSS and JS file path (/) and relative path mode (./)

Prevent users from checking

. noselect {
-webkit-touch-callout:none; /* IOS Safari */
-webkit-user-select:none; /* Chrome/safari/opera */
-khtml-user-select:none; /* Konqueror */
-moz-user-select:none; /* Firefox */
-ms-user-select:none; /* Internet Explorer/edge */
User-select:none; /* non-prefixed version, currently not supported by any browser */
}

IE < 10 and Opera < 15 properties unselectable= "on"

Dbclick

var touchtime = new Date (). GetTime ();

if (new Date (). GetTime ()-Touchtime < 500) {
Console.log ("DblClick");
}else{
Touchtime = new Date (). GetTime ();
Console.log ("click")
}

Mobile-side problem solving [record]

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.