Mobile Web front-end development resource integration

Source: Internet
Author: User

Meta-Related:

<meta name= "viewport" content= "Width=device-width,initial-scale=1.0,user-scalable=no"/><meta name= " Format-detection "content=" Telephone=no "/><meta name=" format-detection "content=" Email=no "/>

CSS Related:

-webkit-overflow-scrolling:touch, fast scrolling and rebound results, and the efficiency of the native app seems to have a spell. -webkit-overflow-scrolling creates a system-level control with hardware acceleration, so it's very efficient. But this is relatively more memory-intensive, preferably when a very large area of overflow is produced.

Mobile-side fonts

Body {font-family: "Helvetica Neue", Helvetica, Stheiti, Sans-serif;/* Use sans serif fonts */}

 禁止长按链接与图片弹出菜单

A, img {-webkit-touch-callout:none;}
To prevent click Highlighting, you can add a label or body,html by
-webkit-tap-highlight-color:transparent;

-webkit-appearance property to change the browser default style for any element

Appearance:none|normal|icon|window|button|menu|field;
去掉webkit默认的表单样式
Button,input,optgroup,select,textarea {-webkit-appearance:none;}
禁止选中文本
-webkit-user-select:none;

Remove the blue outer border and gray translucent background when a, input, and button are clicked

A,button,input,optgroup,select,textarea {-webkit-tap-highlight-color:rgba (0,0,0,0);}

Modify the Planceholder style of input

Input::-webkit-input-placeholder {color: #ccc;}

Modify the style of the form when it gets focus

Input[type=text]:focus, Input[type=password]:focus {border:2px solid#f00;outline:none;}

Using CSS to implement ellipsis text truncation

White-space:nowrap;text-overflow:ellipsis;

Mobile Web front-end development resource integration

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.