首页 > 其他分享 >test11

test11

时间:2022-12-24 18:26:13浏览次数:32  
标签:box function return color test11 Copy

<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 50%;
      }
    </style>
    <link rel="stylesheet" href="lib/prism.css" />
  </head>
  <body>
    <pre><code class="language-css line-numbers">p { color: red }</code></pre>
    <div class="box">
      <pre class="line-numbers">
        <code class="language-python" data-prismjs-copy="copy">
          function fn(){
            return a + b
          }
        </code>
    </pre>
      <button
        class="copy-to-clipboard-button"
        type="button"
        data-copy-state="copy"
      >
        <span>Copy</span>
      </button>
    </div>

    <script src="lib/prism.js"></script>
  </body>
</html>

标签:box,function,return,color,test11,Copy
From: https://www.cnblogs.com/hangzhouxihu/p/17003144.html

相关文章