主頁
CSS
CSS 顏色關鍵字
試一試:使用 currentcolor 關鍵字
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> div { color: blue; border: 10px solid currentcolor; padding: 15px; } </style> </head> <body> <h2>The currentcolor Keyword</h2> <p>The currentcolor keyword refers to the current value of the color property of an element.</p> <div> This div element has a blue text color and a blue border. </div> </body> </html>