AI摘要:本文介绍了社会主义核心价值观的代码实现,包括HTML代码,展示了国家、社会和个人层面的价值观内容,强调践行这些价值观对国家富强、社会和谐和个人全面发展的意义。
效果图
代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>社会主义核心价值观</title>
<link href="http://api.xunjinlu.fun/css/shehuizhuyihexinjiazhiguan.css" rel="stylesheet">
<style>
body {
font-family: 'Noto Sans SC', Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #ffffff;
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
}
.container {
max-width: 800px;
padding: 20px;
background-color: #ffffff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
border: 3px solid #d32f2f;
border-radius: 10px;
}
h1 {
color: #d32f2f;
text-align: center;
margin-bottom: 20px;
font-size: 2.5em;
}
h2 {
color: #b71c1c;
margin-top: 20px;
margin-bottom: 10px;
border-bottom: 2px solid #b71c1c;
padding-bottom: 5px;
font-size: 1.8em;
}
p {
line-height: 1.8;
margin-bottom: 15px;
font-size: 1.2em;
}
.values {
display: flex;
justify-content: space-around;
margin-top: 20px;
margin-bottom: 20px;
flex-wrap: wrap; /* 允许内容换行 */
}
.values div {
text-align: center;
width: 30%;
background-color: #fbe9e7;
border: 2px solid #b71c1c;
border-radius: 10px;
padding: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 20px; /* 增加块之间的间距 */
transition: transform 0.3s;
}
@media (max-width: 768px) {
.values div {
width: 100%; /* 在手机界面上每个块占据整个行 */
}
}
.footer {
text-align: center;
padding: 15px;
margin-top: 20px;
color: #fff;
background-color: #d32f2f;
border-top: 3px solid #b71c1c;
border-radius: 0 0 10px 10px;
font-size: 1.2em;
}
.footer p {
margin: 5px 0;
}
.footer small {
display: block;
margin-top: 10px;
font-size: 0.9em;
color: #f0f0f0;
}
</style>
</head>
<body>
<div class="container">
<h1>社会主义核心价值观</h1>
<p>社会主义核心价值观是中国共产党在新时期提出的重要指导思想,是社会主义现代化建设的重要精神<a href="/"target="_blank" style="color:#17202a;text-decoration: none;">支</a>柱。每个公民应当积极践行社会主义核心价值观,共建美好社会。</p>
<h2>核心价值观内容</h2>
<div class="values">
<div>
<h3><a href="/" target="_blank" style="color: #d32f2f;text-decoration: none;">国家层面</a></h3>
<p>富强、民主、文明、和谐</p>
</div>
<div>
<h3><a href="/" target="_blank" style="color: #d32f2f;text-decoration: none;">社会层面</a></h3>
<p>自由、平等、公正、法治</p>
</div>
<div>
<h3><a href="/" target="_blank" style="color: #d32f2f;text-decoration: none;">个人层面</a></h3>
<p>爱国、敬业、诚信、友善</p>
</div>
</div>
<h2>应用和意义</h2>
<p>社会主义核心价值观是每个公民应当遵循的道德准则,有助于推动国家富强,社会和谐,个人全面发展。通过践行这些价值观,我们可以共同为实现中华民族伟大复兴的中国梦贡献力量。</p>
<div class="footer">
<p>践行社会主义核心价值观,共建美好未来</p>
<small>© 2024 尋鯨錄
<br>
<a href="https://beian.miit.gov.cn/" target="_blank" style="color: #f0f0f0;text-decoration: none;">滇ICP备2023007716号-1</a>
<br>
<a href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank" style="color: white; text-decoration: none;">
<img src="https://beian.mps.gov.cn/img/logo01.dd7ff50e.png" alt="公安备案图标" style="vertical-align: middle; height: 15px; width: auto; margin-right: 5px;">公安备案号:滇公网安备53032202530370号</a>
</small>
</div>
</div>
</body>
</html>
{/collapse-item}