【JavaWeb项目】简单搭建一个前端的博客系统
    		       		warning:
    		            这篇文章距离上次修改已过445天,其中的内容可能已经有所变动。
    		        
        		                
                以下是一个简单的博客系统前端部分的代码示例,使用HTML和CSS构建。
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Blog System</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        .header {
            text-align: center;
            padding: 20px;
        }
        .post {
            margin-bottom: 50px;
            padding: 20px;
            background-color: #f0f0f0;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .post-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .post-date {
            color: #888;
            font-size: 12px;
        }
        .post-content {
            margin-top: 20px;
        }
        .footer {
            text-align: center;
            padding: 20px;
            font-size: 12px;
            color: #888;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>Simple Blog System</h1>
    </div>
    <div class="post">
        <h2 class="post-title">Sample Post Title</h2>
        <div class="post-date">Published on: January 1, 2023</div>
        <div class="post-content">
            <p>This is a sample post content. Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
        </div>
    </div>
    <div class="footer">
        <p>Copyright © 2023 Simple Blog System</p>
    </div>
</body>
</html>这个简单的博客系统前端示例展示了如何使用HTML和CSS创建一个基本的博客文章页面。它包括了页面的头部(Header)、文章的标题(Post Title)、日期(Post Date)和内容(Post Content),还有页面的底部(Footer)。这个示例提供了一个基本框架,可以根据实际需求进行样式调整和功能添加。
评论已关闭