/* 现代CSS颜色写法 */
.element {
color: #3498db;
background-color: rgba(52, 152, 219, 0.5);
}
/* 兼容性CSS颜色写法 */
.element {
color: #3498db;
color: rgb(52, 152, 219);
background-color: rgb(52, 152, 219);
background-color: rgba(52, 152, 219, 0.5);
}
/* CSS渐变 */
.linear-gradient {
background: linear-gradient(to right, #3498db, #ffffff);
}
.radial-gradient {
background: radial-gradient(circle, #3498db, #ffffff);
}