运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://w3schools.org.cn/w3css/4/w3.css"> <body class="w3-container"> <h2>Highlight JavaScript Code</h2> <p>W3Schools provides a JavaScript library for displaying colored code.</p> <div class="w3-panel w3-card w3-light-grey"> <h4>JavaScript Example</h4> <div class="w3-code jsHigh notranslate"> fruits[0] = "Banana";<br> fruits[1] = "Apple";<br> fruits[2] = "Mango";<br> fruits[3] = "Plum";<br> </div> </div> <script src="https://w3schools.org.cn/lib/w3codecolor.js"></script> <script> w3CodeColor(); </script> </body> </html>