csdn 代码块 右上角 复制按钮

版权声明:请点击关注 https://blog.csdn.net/weixin_42914677/article/details/83049962

步骤如下:

  1. 点击csdn个人中心
  2. 找到博客管理
  3. 找到博客设置
  4. 选择HTML编辑器

5、保存

6、现在你写代码,就有复制按钮在右上角了

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>测试 csdn 代码块 复制按钮</title>
		<script type="text/javascript" src="jquery-3.3.1.min.js" ></script>
		<script type="text/javascript" src="snake.js" ></script>
		<link rel="stylesheet" href="index.css" />
	</head>
	<body>
		
	</body>
</html>

猜你喜欢

转载自blog.csdn.net/weixin_42914677/article/details/83049962
今日推荐