随机生成色卡HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Palette</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(30, 1fr);
gap: 2px;
}
.color-card {
width: 100%;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 10px;
}
.color-code {
background: rgba(0, 0, 0, 0.5);
padding: 2px 4px;
border-radius: 2px;
}
</style>
</head>
<body>
<script>
function generateColors() {
const body = document.body;
for (let i = 0; i < 900; i++) { // 30 x 30 = 900
const color = `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`;
const div = document.createElement('div');
div.className = 'color-card';
div.style.backgroundColor = color;
div.innerHTML = `<div class='color-code'>${color}</div>`;
body.appendChild(div);
}
}
generateColors();
</script>
</body>
</html>
发稿平台
发稿平台是企业与媒体建立联系的工具,减少企业与媒体的沟通成本,可以高效实现新闻稿发布到各大新闻媒体的平台。
想做好新闻稿发布,需要了解基础入门操作、技术操作、效果提升等。
我原本是个和传播毫不相干的机械设计师,直到一篇无心写就的稿子,竟像一道精准的杠杆,为公司直接撬动了两次重要合作。
针对每一个问题,我们都认真回答。阅读问题,快速获得经验。
新闻锚点,记录来时的路。
推荐内容
2024-10-10 11:15:41
2024-03-28 10:07:19
2024-11-07 13:33:07
微信:
电话:
鄂
公安网备 42080002000122号