开始python以前~对移动端布局的一些理解

好吧,最近我写了不少移动端的页面!!!而后一个写的感受还不错!一个不知道状态不对仍是什么的写到最后~尽管写完了可是超级不满意python

我总结了是我已经神游物外了~能让我这种心静似高山不动,美丽与智慧并存,英雄与侠义化身(省略100个字)程序猿~心绪不定的么~~~~也就一件事了web

 

我估计网上对移动端的总结么,多了去了。。。而后我简单的写下我平时写代码时的风格。。。固然只是喜欢,可能有的人以为不喜欢,固然不强求面试

这个是我写的比较标准的~~~express

 

 

.wapper {
    bottom: 0;
    height: 100%;
    left: 0;
    margin: 0 auto;
    max-width: 720px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
}
.header {
    height: 3em;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}
.content {
    bottom: 0;
    height: 100%;
    overflow-y: scroll;
    position: absolute;
    top: 0;
    width: 100%;
}

.footer {
    background-color: #fabd00;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 1;
}

这个是我比较写的风格,固然有人以为很差的话,那青菜萝卜各有所爱吧。。。不强求改变一我的喜欢编程

我这样布局,固然有属于个人理由,浏览器

1:这样能够在安卓4.0一下弥补对fixed的支持!!!有无数面试官或者人问我,你这样写的优点,或者其余,我老是会说之前写的时候遇到的一个小笑话。。。由于我写移动的页面特别早-_-//那个时候我记得我用的三星的安卓2。0的...那个时候fixed和absolute实际上没多大差异。。。最后我用了解决ie6 _absolute方法app

top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));布局

解决了固定this

 

2.怎么说呢,我感受干净了吧,。。全屏100%控制起来看着确实挺累的,挺心塞!720px实际上差很少。。。固然pad么再放大吧spa

 

3么

 

 

这个底部为何我总以为有种哔了狗的冲动!!!!并且很难加拓展好比浮动的底部上面要加点何时

 

 

而后么圣杯布局,的一些控制

 

em的灵活使用   

body { font: 1em/1.25em Microsoft Yahei; }

 

 

去除浏览器的点击出现的框

a { -webkit-tap-highlight-color: rgba(240,240,240,0); }

span { -webkit-tap-highlight-color: rgba(240,240,240,0); }

input { -webkit-tap-highlight-color: rgba(240,240,240,0); }

img { -webkit-tap-highlight-color: rgba(240,240,240,0); display: inline-block; }

 

去除浏览器对button的默认样式,,,水果手机专属

input{-webkit-appearance:none;}

 

 

 

发基本PDF的书吧。。。都是别人发过来的。。。

 

angularJS的中文版

http://pan.baidu.com/s/1qXtPCkO

犀牛书第6版

http://pan.baidu.com/s/1o7hI7Aq

JavaScript面向对象编程指南

http://pan.baidu.com/s/1Ninng

 

好了~本白开始看python咯~~~

相关文章
相关标签/搜索