Mobile development related Memos

Source: Internet
Author: User

. Game {    position:absolute;    top:0;    bottom:0;    left:0;    R ight:0;    overflow:hidden;    to make the game container absolutely positioned, the upper and lower left edges are snapped to the phone screen http://isux.tencent.com/ html5-game-development-cheats.html   in Photoshop, if you need a border that looks like a 0.5px, the common approach is to add a shadow blur 1px to the 1px border. Similarly, we need to do a realistic 1px frame under the retina screen, using the Box-shadow property simulation: @media only screens and (-webkit-min-device-pixel-ratio:1.5),  Only screens and (min-device-pixel-ratio:1.5) {  button {    border:none;    padding:0 16px;    Box-shadow:inset 0 0 1px #000,                inset 0 1px 0 #7 5c2f8,                0 1px 1px-1px rgba (0, 0, 0,. 5); }}http://isux.tencen T.com/responsive-web-design.html  body {    font-family: "Helvetica Neue", Helvetica, Stheiti, Sans-serif;} iOS 4.0+ uses the English font Helvetica Neue, before the iOS version is degraded using Helvetica. The Chinese font is set to Chinese blackbody stheiti. To be added, the Chinese blackbody andThere is no font library for iOS (http://support.apple.com/kb/HT5878), but the system automatically hits the Chinese blackbody Stheiti compatible with the system default English font Blackbody-Simple or bold-complex. Native Android Chinese fonts and English fonts are selected by default sans serif font http://alloyteam.github.io/spirit/modules/standard/index.html   This layout is common in Mobile:. Wrapper{display:-webkit-box;}  //parent Container img{does not require}.right-wrap{display:-webkit-box;-webkit-box-orient: Vertical;-webkit-box-pack:justify;}  //Picture right side of the container    browser page when switching, because of its page loading mechanism, in the jump to the next page, the first to request networking, loading page code, building the DOM, rendering, and finally displayed. A white screen of dozens of milliseconds or even a few seconds will appear before the final result is rendered. The native app is not the problem. Although the use of the SPA single-page application model, that is, ajax+div switch can also avoid white screen, but all the pages written in a spa page, the page more than the mobile phone can not run up, and engineering big code that mess ... The man who has been in the pit is naturally aware. Solution: 1, preload, that is, the background pre-load the new page of HTML files and resources, use directly call up this has created a good webview2, that is, click on the front page of the link to start walking waiting circle, while the background began to load the full new page, loaded and then use the JS control display to the foreground. 3, head and body separate two webview to get HTTP://ASK.DCLOUD.NET.CN/ARTICLE/25

Mobile development Related memo

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.