知识林
当前位置:知识林 » 网站前端开发 » CSS » 文档 » css 常用属性

css 常用属性

来源: 知识林
文本
font-family"Trebuchet MS", Verdana, sans-serif;
font-size10px | 2em | 1.4rem
font-stylenormal | italic | oblique
font-weightnormal | lighter | bold | 100–900
text-decorationnone | underline | overline | line-through
边框
border-radiusborder-top-left-radius
border-top-right-radius
border-bottom-right-radius
border-bottom-left-radius
位置
background-position
/* Keyword values */
background-position: top;
background-position: bottom;
background-position: left;
background-position: right;
background-position: center;

/*  values */
background-position: 25% 75%;

/*  values */
background-position: 0 0;
background-position: 1cm 2cm;
background-position: 10ch 8em;

/* Multiple images */
background-position: 0 0, center;

/* Edge offsets values */
background-position: bottom 10px right 20px;
background-position: right 3em bottom 10px;
background-position: bottom 10px right;
background-position: top right 10px;

/* Global values */
background-position: inherit;
background-position: initial;
background-position: unset;

今天

Copyright © 知识林 All Rights Reserved.   吉ICP备13001611号-1