When the whole world is about to rain, let's make it clear in our heart together

热爱前端开发,专注于前端

文章分类 -  css问题

摘要:只有给span加上display: line-block,才能给它加上样式padding,margin之类的。 阅读全文
posted @ 2016-08-02 15:13 婷风 阅读(1642) 评论(0) 推荐(1)
摘要:getPropertyValue(propertyName (如“background color")) 返回css特性propertyName的字符串值。 removeProperty(propertyName ) 从css中删除propertyName。 setProperty(property 阅读全文
posted @ 2016-05-22 20:00 婷风 阅读(156) 评论(0) 推荐(0)
摘要:body,ul,ol,li,h1,h2,h3,h4,h5,h6,form,fioldsot,table,td,img,div,dl,dt,dd,input{margin:0;padding:0;border:0}body{font-size:13px;}img{border:none;}ul,ol{list-style:none;}input,select,textarea{outline:no... 阅读全文
posted @ 2016-05-14 15:08 婷风 阅读(363) 评论(0) 推荐(0)
摘要:学习网站:http://www.w3cplus.com/css3/autoprefixer-css-vender-prefixes.html 阅读全文
posted @ 2016-05-13 15:29 婷风 阅读(372) 评论(0) 推荐(0)
摘要:flex布局讲解: http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html flex布局总结:http://www.cnblogs.com/qieguo/p/5421252.html兼容性写法的话了解一下即可,实际中用插件自动完成就好。htt 阅读全文
posted @ 2016-05-13 15:19 婷风 阅读(157) 评论(0) 推荐(0)
摘要:如果要某一个div,固定在最上面,鼠标移动,div保持不动的方法: 1:position:fixed 2:设置position:absolute,且控制div.style.top=document.body.scrollTop||document.documentElement.scrollTop 阅读全文
posted @ 2016-05-11 13:42 婷风 阅读(313) 评论(0) 推荐(0)
摘要:1:如何使同一个div中的图片和input框在同一行上? 2:了解vertical-align的属性? 包括Baseline | middle |bottom|Text-bottom|Text-top|sub|bottom Baseline:图片(内含文字)和文字以文字基准对准对齐 middle:以 阅读全文
posted @ 2016-04-30 21:21 婷风 阅读(426) 评论(0) 推荐(1)