end mobile web app development _ case, touch events

step:

  1, and set up the project directory (html, css, js separation)

  2, set the viewport, does not allow zooming

  3, the common set (style reset + add a new style)

  4, most of the label is set box model (after re-setting the width of the border to avoid setting again what additional calculations)

  5, add a new style (remove floating Han)

  6, the entire page layout (large to small, from the top down, pay attention: the floating elements, a line must be floating, floating to the clear float, while the floating block-level elements of the last to use a non-floating elements wrap)

  

 

End touch screen mobile event

  The phone side event listeners recommended way to add events

  

 

  

  

  

  

  

    

   

    

 

Guess you like

Origin www.cnblogs.com/yangyutian/p/10993898.html