--- editLink: false --- # CSS基础 CSS提供了三种方法,可以将CSS样式应用到元素上: - 内联样式 - 直接将样式写到元素的`style`属性上 - 内部样式表 - 将样式通过`