generate-color
Version:
Generate random color(s), support RGB, material and web standard, rgb、rgba、hex format, node.js and browser environment.
29 lines (27 loc) • 564 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>generate-color</title>
<style>
.color-box {
width: 1000px;
margin: 40px auto;
clear: both;
overflow: hidden;
}
.color-box span {
float: left;
width: 200px;
margin: 2px;
line-height: 30px;
text-align: center;
}
</style>
</head>
<body>
<script src="./demo.js"></script>
</body>
</html>