@heqinglin
2018-03-12T05:28:46.000000Z
字数 2265
阅读 126
文档
不管项目有多少人共同参与,代码都像是同一个人编写的。
<script> <link>标签不需要type属性<img> <input> <br> <p>不可嵌套其他标签,<li>置于<ul>中, <a>不可嵌套<a><h1>, <ul> <li> <i> <header> <footer> <nav> <section> <a>嵌套logo时,加上title属性
<input type="text" disabled readonly><video loop muted autoplay></video><select><option value="" selected></option></select>
<br>,可以用display:block来换行,方便响应;结束,;后空1个空格
.header{height:105px; position:fixed; left:0; top:0; width:100%;}.header .inav{font-size:14px; color:#404040;}
header{}
.sidebar {/* 位置 */position: absolute;top: 50px;left: 0;overflow-x: hidden;/* 尺寸 */width: 200px;padding: 5px;border: 1px solid #ddd;/* 文本*/font-size: 14px;line-height: 20px;/* 视觉效果 */background: #f5f5f5;color: #333;-webkit-transition: color 1s;transition: color 1s;}
/* author: heql* date: 2018-02-28*/
/*2017-02-16 by heql*/
tool_bar news_leftfloat:right; 应该用text-align:right;.mab_box{overflow:hidden;} .mab_box img{max-width:none;}<meta name="robots" content="noarchive"><!--禁止搜素引擎抓取快照-->以下都是工作中不易发现的坑,可能踩进去就出不来了,持续补充此类bug,便于大家查找问题,快速解决。
z-index:-1需合理使用,,绝对定位的情况下,加z-index:-1的元素,不会触发重排,产生缝隙。案例.slideDown()之类的方法,改变dom元素的内联样式,移动端没有清除。<a>标签,会导致链接失效,ie9以下会出现此bug,加背景可解决background:url(about:blank);line-height,ie8会跑偏background缩写样式属性间要有空格
.bg{background:url(../bg.jpg)repeat} //报错