CSS哪些属性可以继承哪些不可继承可继承属性:1.字体系列属性font:组合字体font-family:规定元素的字体系列font-weight:设置字体的粗细font-size:设置字体的尺寸font-style:定义字体的风格font-variant:偏大或偏小的字体2.文本系列属性text-indent:文本缩进text-align:文本水平对刘line-height:行高word-spacing:增加或减少单词间的空白letter-spacing:增加或减少字符间的空白text-transform:控制文本大小写direction:规定文本的书写方向color:文本颜色3.元素可见性visibility4.表格布局属性caption-side定位表格标题位置border-collapse合并表格边框border-spacing设置相邻单元格的边框间的距离empty-cells单元格的边框的出现与消失table-layout表格的宽度由什么决定<automatic.fixed.inherit>5.列表布局属性list-style-type文字前面的小点点样式list-style-position小点点位置list-style以上的属性可通过这属性集合6.引用quotes设置嵌套引用的引号类型7.光标属性cursor:箭头可以变成需要的形状不可继承属性1.displey2.文本属性vertical-align:垂直文本对齐text-decoration:规定添加到文本的装饰text-shadow:文本阴影效果white-space:空白符的处理3.盒子模型属性width、height、margin 、margin-top、margin-right、margin-bottom、margin-left、border、border-style、border-top-style、border-right-style、border-bottom-style、border-left-style、border-width、border-top-width、border-right-right、border-bottom-width、border-left-width、border-color、border-top-color、border-right-color、border-bottom-color、border-left-color、border-top、border-right、border-bottom、border-left、padding、padding-top、padding-right、padding-bottom、padding-left4.背景属性background、background-color、background-image、background-repeat、background-position、background-attachment5.定位属性float、clear、position、top、right、bottom、left、min-width、min-height、max-width、max-height、overflow、clip、z-indexCSS优先级算法1.原则使用就近原则,同权重情况下样式定义最近者为准载入样式以最后载入的定位为准2.优先级同权重下:内联样式(标签内部) > 嵌入样式表(当前文件中) > 外部样式表(外部文件中)!import > id > class >tag备注:important比内联优先级高作者有话说亲爱的读者:每日两道前端面试题专栏目此后不再以此为标题.关于日期会写在文章的最后.嘻嘻每日两道前端面试题20190306