问问题描述
css样式有哪些,求路过的大神指点,急!
答精选答案

CSS样式种类繁多,主要包括以下几类:
基本样式 :
字体:`font-family`, `font-size`, `font-weight`, `font-style`
颜色:`color`, `background-color`
边框:`border`, `border-style`, `border-color`, `border-width`
内边距和外边距:`padding`, `margin`
布局样式 :
浮动:`float`
定位:`position`, `top`, `right`, `bottom`, `left`
显示:`display`
网格布局:`grid`
弹性布局:`flexbox`
特殊效果 :
过渡:`transition`
动画:`animation`
变形:`transform`
过滤器:`filter`
混合模式:`mix-blend-mode`
表样式 :
表格显示:`table-layout`, `border-collapse`, `border-spacing`
表格数据:`table-cell-padding`, `table-cell-spacing`
其他样式 :
媒体查询:`@media`
自定义属性:`@custom-property`
动画时间线:`animation-timeline`
CSS样式可以通过以下方式应用:
内联样式 :直接在HTML标签的`style`属性中定义样式。
嵌入式样式 :在HTML文档的`