Mobile Project Development Summary

Source: Internet
Author: User

Technical summary

1. In order to adapt the Web page to different mobile phone size, in this project development, for each module and page size as far as possible using the percentage as a unit, so that it can be sufficient to adapt.

such as the navigation bar, the navigation bar in this project has four buttons evenly distributed under the page, if the same way as the previous development of the PC side margin (padding, margin) to layout, once the screen size changes, the button is not adaptive, the layout will not achieve the desired effect, and in order to solve this problem, I will The width of the <a> label is set to 25%.

#nav{position:fixed;Bottom:0; Left:0;width:100%;Height:136px;background:#fff;}#nav a{width:25%;Height:135px;position:relative;}#nav a span{Display:Block;margin:15px 0 0 47px;}#nav A P{Margin-left:55px;font-size:26px;Color:#000;position:Absolute;Bottom:15px;}
<navID= "NAV"class= "Test">            <ahref= "Index.html"class= "FL">                <spanclass= "img icon-6"></span>                <P>Home</P>            </a>            <ahref= "category.html"class= "FL">                <spanclass= "img icon-7"></span>                <P>Classification</P>            </a>            <ahref= "search.html"class= "FL">                <spanclass= "img icon-8"></span>                <P>Found</P>            </a>            <ahref= "personal-information.html"class= "FL">                <spanclass= "img icon-9"></span>                <P>It's mine</P>            </a>        </nav>

2. Component the code to make it reusable, reduce duplication of code and effort, and speed up project development.

component of the Code, the technical aspects of the fact that there is no requirement, more in the project before the beginning of a whole project analysis and thinking.

Because there is no technical characteristic, this time does not show the superfluous code here.

Mentality summary

1. The mobile page layout is simple and the content is less than the PC-side page, so the project is not enough attention. But it does not take much time to think on the layout, and to taste the consequences when it comes to adaptation.

2. Before the project development, should be fully understand the project's specific requirements, clearly know, the overall effect of the project. Have any doubts about the project development process, should make the communication and solve.

Mobile Project Development Summary

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.