CSS / 변수 사용하기
Author : 치치     Date :  2019-10-12 09:36:01   Views : 6회  
<!doctype html>
<html lang="ko">
	<head>
		<meta charset="utf-8">
		<title>CSS</title>
		<style>
			:root {
				--my-color-1: red;
			}
			.x {
				color: var( --my-color-1 );
			}
		</style>
	</head>
	<body>
		<h1 class="x">Lorem Ipsum Dolor</h1>
	</body>
</html>

 





❌Delete 🛠Modify 🐣Reply 📄List
No Subject
Author Date Like Views