随笔分类 -  html+css

摘要:字体:一行(太长)-display:inline-block,text-overflow:ellipsis;max-width:xxpx多行(太高,太矮)-设置max-height,min-height图片: 阅读全文
posted @ 2015-05-28 11:46 yo胡yo 阅读(179) 评论(0) 推荐(0)
摘要:公共:1.标题,盒子之间的间距,字体大小 margin font-size2.font-family,跟ui对字体类型 阅读全文
posted @ 2015-05-27 16:05 yo胡yo 阅读(156) 评论(0) 推荐(0)
摘要:html:62.5%//10pxbody:1.4rem;//14px... aaa 你好啊你好啊nnn你好啊nnnfont-size rem 相比10pxline-height:2em 相比当前元素字体高度2倍 阅读全文
posted @ 2015-05-11 19:07 yo胡yo 阅读(473) 评论(0) 推荐(0)
摘要:header h1 nav ul li asection(id) div h3 article figure img article h4 header time datetime='' body footer asidefooter ul a... 阅读全文
posted @ 2015-05-07 20:15 yo胡yo 阅读(305) 评论(0) 推荐(0)
摘要:html标签data大写获取不到值:只能小写+横杠命名例如:data-tip-type可以拿到,但是data-tipType就不可以了_type = _this.data('tip-type'); 阅读全文
posted @ 2015-04-18 15:59 yo胡yo 阅读(306) 评论(0) 推荐(0)
摘要:1.display:none;2.position:absolute; left:-99999px;3.visibility:hidden;4.opacity:0; 阅读全文
posted @ 2015-04-16 22:04 yo胡yo 阅读(624) 评论(0) 推荐(0)
摘要:css的box-sizing:border-box有什么用:视频说是多了的尺寸去掉了,适配box宽高 阅读全文
posted @ 2015-04-12 00:55 yo胡yo 阅读(478) 评论(0) 推荐(0)
摘要:.xx{ background-size:cover;/**cover作用?**/ background-position:50% 50%; } 阅读全文
posted @ 2015-04-12 00:48 yo胡yo 阅读(884) 评论(0) 推荐(0)
摘要:3个属性:transition,animation,transform实现步骤:1.css定位 2.rgba设置颜色透明度 3.转换+动画 transform+animation 4.动画平滑过渡 transition========================美丽分割线============... 阅读全文
posted @ 2015-04-12 00:21 yo胡yo 阅读(1757) 评论(0) 推荐(0)
摘要:background-color: #2a3138; position: fixed; bottom: 0; left: 0; width: 100%; height: 57px; overflow: hidden; 阅读全文
posted @ 2015-03-17 23:24 yo胡yo 阅读(446) 评论(0) 推荐(0)
摘要:white-space:nowrap;text-overflow:ellipsis; -o-text-overflow:ellipsis;overflow:hidden; 阅读全文
posted @ 2015-03-17 23:17 yo胡yo 阅读(185) 评论(0) 推荐(0)
摘要:xxx 阅读全文
posted @ 2015-03-17 16:26 yo胡yo 阅读(1224) 评论(0) 推荐(0)