4月2日笔记

1.效果图

屏幕截图 2026-04-02 084235

代码:

点击查看代码
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>设置颜色</title>
	</head>
	<body>
		<style>
		a{
			display:inline;
			display:block;
			
			
			
		}
		
		.red{
			color:red;
			
		}
		.blue{
			color:blue;
			
		}
		.green{
			color:green;
			
		}
		.black{
			color:black;
			
		}
		.yellow{
			color:yellow;
			
		}
		.white{
			color:white;
			
		}
		.pink{
			color:pink;
			
		}
		
		</style>
		<a class='red' href="#">空链接</a>
		<a class='pink' href='#'>9链接</a>
		<a class='blue' href="#">1链接</a>
		<a class='yellow' href="#">2链接</a>
		<a class='green' href="#">3链接</a>
		<a class='white' href="#">4链接</a>
		<a class='black' href="#">5链接</a>
		
	</body>
</html>

2.锚记和其使用方法
posted @ 2026-04-06 20:24  createcoding  阅读(5)  评论(0)    收藏  举报