Mobile---web Development

Source: Internet
Author: User

Recently seen in the group is very interested in mobile Web development. decided to write a Web development concept or framework on the mobile side (Baoqing is very tangled in this). Also because I have been engaged in the PC browser web has been on the mobile side is not very important, so take advantage of this opportunity to also let themselves on the mobile side of the development of a clear understanding.


Environment:

1. The kernel on the mobile side: What is the kernel of the mobile browser?   In the article Android phone use Webkit.

Other Qq,uc, the Dolphin Browser is based on this development. On iOS and WP7 platforms, because the system is closed, it does not agree to enter the browser kernel other than the system's own browser core. Therefore, the development of each browser is based on the safari or IE core two times development. Optimized functionality and homemade UI. based on

"   each browser to the HTML5 test has a greater increase, but the stability is still insufficient."

The well-known Independent IT blog Monthly blog said that the browser for the HTML5 upgrade is not an overnight, in such a race after a certain period of time. Most browser vendors will also support all the new features.

”

can seeAndroid. IOS,WP7 is supported for HTML5, and may be different in detail for a particular browser.
tips: Speaking of HTML5. Should mention CSS3. Searched the internet for a bit. There is only one article ~Android Platform Browser CSS3 compatibility test. Although the article is older, but when looking at some framework source code. I do see the JS code for some CSS3. So the use of CSS3 should be careful.

(especially QQ browser)
for the above situation, I would like to use some of the more popular and reliable CSS framework.

For example:Prue (the framework here does not baoqing the depth and complexity of the students ' understanding. A lot of other ideas like style library and style writing ~)


Development:
1. About the development of mobile-side web: Summary on the technical points of WebKit WEBAPP development
This article is all about the concept and the basics ~ Please note the links in the article ( JS under your fingertips ).
through this article, I would like to click. Mouse this sort of thing, don't go out now. The development of Mobile-web; : hover pseudo-class This style is not out of Today The development of Mobile-web; know that CSS is very important for JS development. In particular, the development of some components.
Although the article is very well written. But also pay attention to compatibility issues. Talked about before, especially css3 some of the problems. It's better to try a little bit more.

Frame:
1. For the "adaptive page", before looking at some of the blog about this, the feeling is not very difficult, but when you write. That's not what happened.
Cause: 1. It may be that their abilities and concepts are not well understood. 2 people are helpless design.

so we can only use the existing framework to solve the problem ~                  Advantages: 1. Unified framework, can be used for many people, do not look at the code written by others ~2. Look at the code written by others and compare it to what you write. can also improve their own. 3. Do not struggle with some of the framework can solve the problem ~ ~ ~
2. Some JS frames are available for "pages with complex interactions, general code is not good to solve".
This is a relatively simple and point-of-reference app framework, but the framework itself can be problematic.                    Yes, for mobile web development, the jquery Library Reference ~ recommended to use the appFrameworkinside "castration" after the jquery library.


to learn the app framework: http://bbs.phonegap100.com/thread-361-1-1.html


Photo:
1. Mobile Web development often encounters problems with loading images. The main reasons are: 1. In order to prevent image distortion, the picture must be twice times larger than the original.
2. The picture cannot be merged because of Reason 1.

Because of the above reasons: Mobile page, the picture will be loaded slow.

Workaround: Convert the picture to BASE64 format. Conversion Tool Address:Http://tool.oschina.net/encrypt?

type=4 Note: The converted BASE64 format will be a very long string. The string cannot be wrapped .


Compatibility:

1. To support the Winphone, quote Microsoft'sHand.jsfile. Used to writeTouchstartand theTouchendto change toPointerdown,Pointerup.


Development tools:
Mobile Debugging-android

For Androi phones We can also see the source code and debug it just like the development tools on the PC Chrome

See the official documents from Chrome

Just a couple of processes.

(1)   phone enable USB debugging (System settings  -  Developer Options  - usb Debug)//

(2) Chrome agree usb debug (tool-Check device-tick ( agree usb debug )

(3) Connect the phone and the computer with the data cable, tick the " always on" on the mobile phone computer

(4) Open the page you want to debug with chrome on your phone

(5) Open the chrome://inspect/on your computer #devices and then click "Inspect" to have a page similar to Chrome's development tools to debug the page you opened on your phone


Tips: Domestic open assumptions do not open ~ Remember the first time to link to the VPN








Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

Mobile---web Development

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.