This project is to do mobile web app, because the mobile page content is relatively small, so much faster than the PC, of course, we do this project is only the fur of the mobile side, the real mobile response to the development of the back to learn more technical implementation. This time, we used a large-scale sprite to save the picture, the teacher also sent us a sprite to generate a tool, very force.
Sprite diagram I think it is very good, use PS to cut the icon after the uniform specification of the name of the save (PS can be set), and then use the tool to generate sprite map, copy the sprite map of the CSS code we can directly call, very convenient, more efficient than a picture call, but also avoid the trouble of repeating the name. In addition, in improving the page performance sprite also has a good effect, because the browser when loading the picture is a queue to download the form, so a Web page if the number of images will directly affect the opening time, Sprite diagram will be a number of pictures to be a picture can undoubtedly avoid this problem to a large extent. Sprite diagram generally applies to small icons, I even large figures also use sprite chart, but pay attention to the small icon of the sprite and large map of the sprite to separate, do not all go to a piece on the put. Many students say that will not be used, anyway, I was used quite cool, direct call, convenient and fast, at the same time I also look forward to learning more technology to further improve the development efficiency.
PC-side development consider compatibility more, and the mobile side will consider the adaptation is more, because the screen size of various mobile phones are not the same, so we develop the page must be concerned with different resolutions of different screen strategies, or to develop a more versatile display strategy. For example, a navigation four buttons occupy the whole line, we should set the width of each button to 25%, so no matter how the screen size changes, there will not be too much change, we should be aware of the development of the place is to occupy a whole line, which is centered, it must be clear to start doing.
Second project summary (MOBILE)