运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #myDIV { color: blue; border: 10px solid currentcolor; } </style> </head> <body> <h2>The currentcolor Keyword</h2> <p>The currentcolor keyword refers to the value of the color property of an element.</p> <p>The border color of the following div element will be blue, because the text color of the div element is blue:</p> <div id="myDIV"> This div element has a blue text color and a blue border. </div> </body> </html>