css - color
1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 8 <title>Document</title> 9 <style> 10 h1 { 11 /* hex */ 12 color: #000000; 13 /* hex 缩写->仅限于前三位值和后三位相同. */ 14 color: #000; 15 /* color-name */ 16 color: black; 17 /* rgb */ 18 color: rgb(0,0,0); 19 /* rgba */ 20 color: rgba(0,0,0,1); 21 /* inherit(默认从父类继承字体颜色) */ 22 color: inherit; 23 } 24 </style> 25 </head> 26 27 <body> 28 <h1>00004</h1> 29 </body> 30 31 </html>
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步