随笔分类 -  css

摘要:https://www.cnblogs.com/zhouhuan/p/vertical_center.html 阅读全文
posted @ 2019-04-26 16:31 nohuman 阅读(201) 评论(0) 推荐(0)
摘要:/*public*/html,body,div,span,p,dl,dd,dt,h1,h2,h3,h4,h5,a,li,ul,ol,form,input,label,img,* { padding:0; margin:0; border:none; color:#fff; outline:none; 阅读全文
posted @ 2017-12-07 10:37 nohuman
摘要:body,html,input{font:12px/1.5 tahoma,arial,\5b8b\4f53,sans-serif;} 解释:这是css中font的简写写法。字体:字体大小/字体行高 字体格式。 详写如下:body,html,input{font: 12px;line-height: 阅读全文
posted @ 2016-10-21 16:15 nohuman
摘要:http://www.cnblogs.com/lhb25/archive/2013/02/17/css3-linear-gradient.html http://www.360doc.com/content/13/1023/15/8773231_323527721.shtml 阅读全文
posted @ 2016-06-06 17:30 nohuman 阅读(124) 评论(0) 推荐(0)
摘要:1.媒体查询方法在 css 里面这样写 @media screen and (min-width: 320px) and (max-width: 480px){在这里写小屏幕设备的样式} @media only screen and (min-width: 321px) and (max-width 阅读全文
posted @ 2016-05-27 16:50 nohuman
摘要:前面也写了一篇属性顺序 一、CSS书写顺序 1.位置属性(position, top, right, z-index, display, float等)2.大小(width, height, padding, margin)3.文字系列(font, line-height, letter-spaci 阅读全文
posted @ 2016-05-12 14:29 nohuman
摘要:F1:面向属性的命名 如:http://www.zhangxinxu.com/wordpress/2010/09/精简高效的css命名准则方法/ 适合:属性重用度高的 精简高效的CSS命名准则之一:对于网站非通用元素,如果样式简单(1~2个属性),对其分离并使用面向属性的命名方法。 精简高效CSS命 阅读全文
posted @ 2016-05-12 10:47 nohuman
摘要:注意事项: 1.一律小写; 2.尽量用英文; 3.不加中杠和下划线; 4.尽量不缩写,除非一看就明白的单词. 主要的 master.css 模块 module.css 基本共用 base.css 布局,版面 layout.css 主题 themes.css 专栏 columns.css 文字 fon 阅读全文
posted @ 2016-05-11 17:30 nohuman
摘要:各大门户网站的全局css样式定义 1.网易body { text-align: center; font-family:"宋体", arial;margin:0; padding:0; background: #FFF; font-size:12px; color:#000;}div,form,im 阅读全文
posted @ 2016-03-31 21:38 nohuman
摘要:zoom:1 zoom:1;属性是IE浏览器的专有属性,Firefox等其它浏览器不支持。它可以设置或检索对象的缩放比例。 兼容IE6、IE7、IE8浏览器,经常会遇到一些问题,可以使用zoom:1来解决,有如下作用:1、触发IE浏览器的haslayout2、解决ie下的浮动,margin重叠等一些 阅读全文
posted @ 2016-03-31 21:38 nohuman 阅读(701) 评论(0) 推荐(0)