01 2016 档案

摘要:我们知道,CSS写在不同的地方有不同的优先级, .css文件中的定义 < 元素style中的属性,但是如果使用!important,事情就会变得不一样。 首先,先看下面一段代码: 虽然元素的style中有testClass类的定义,但是在上面的css定义中的用!important限定的定义却是优先级 阅读全文
posted @ 2016-01-25 09:45 雪昀 阅读(1061) 评论(0) 推荐(0)
摘要:1、canvas画直线 阅读全文
posted @ 2016-01-08 15:17 雪昀 阅读(243) 评论(0) 推荐(0)
摘要:1、在jQuery中,width()方法用于获得元素宽度; innerWidth()方法用于获得包括内边界(padding)的元素宽度, outerWidth()方法用于获得包括内边界(padding)和边框(border)的元素宽度,如果outerWidth()方法的参数为true则外边界(margin)也会被包括进来,即获得包括外边框(margin)、内边界(padding)和边框(bor... 阅读全文
posted @ 2016-01-08 11:41 雪昀 阅读(2185) 评论(0) 推荐(0)
摘要:1、图片作为边框:border-image; 2、圆角问题:border-radius:上、下、左、右; 3、字体的阴影与自动换行: 4、旋转 5、过渡 阅读全文
posted @ 2016-01-06 17:40 雪昀 阅读(282) 评论(0) 推荐(0)
摘要:1、css3 渐变的属性 例子: 效果: 阅读全文
posted @ 2016-01-06 16:32 雪昀 阅读(199) 评论(0) 推荐(0)
摘要:1、css3 的相关属性: 相关代码: 运动的参数(百分比表示运动的进度) 阅读全文
posted @ 2016-01-06 16:05 雪昀 阅读(334) 评论(0) 推荐(0)