随笔分类 -  CSS3

摘要:background-position 有两个参数,定义背景图片起始位置可选值有: center top left right bottom px % background-size 可以用 px % 设定其宽高 值 cover 完全覆盖背景区域 contain 适应背景区域 background- 阅读全文
posted @ 2018-02-01 15:35 webyun 阅读(277) 评论(0) 推荐(1)
摘要:虚线的宽高为你实际指定的width和height 虚线外的白色区域为padding 红色区域为border的width 红色外的区域为margin 阅读全文
posted @ 2018-02-01 14:47 webyun 阅读(248) 评论(0) 推荐(0)
摘要:border属性 border-width border-style border-color inherit border-style的值:none dotted(点线) dashed(虚线) solid(实线) double(双线) groove(凹槽) ridge(凸起) inset outs 阅读全文
posted @ 2018-01-31 15:12 webyun 阅读(280) 评论(0) 推荐(0)
摘要:text-shadow 属性有四个值 水平阴影、垂直阴影、模糊距离、阴影颜色 text-overflow 属性规定当文本溢出包含元素时发生的事情 clip 修剪文本 ellipsis 显示省略符号来代表被修剪的文本 string 使用给定的字符串来代表被修剪的文本 阅读全文
posted @ 2018-01-31 14:34 webyun 阅读(102) 评论(0) 推荐(0)
摘要:font连写属性 font-style font-variant font-weight font-size/line-height font-family font-size与font-family为必填 font-style 可指定的值为: normal(正常) italic(斜体) obliq 阅读全文
posted @ 2018-01-31 14:11 webyun 阅读(281) 评论(0) 推荐(0)