<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Blog Layout</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f0f2f5;
}
.container {
max-width: 900px;
margin: 50px auto;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.blog-post {
margin-bottom: 30px;
}
.blog-post h2 {
margin: 0;
font-size: 2em;
color: #007bff;
}
.blog-post p {
font-size: 1em;
line-height: 1.6;
}
.blog-post img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 10px 0;
}
</style>
</head>
<body>
<div class="container">
<h1>My Blog</h1>
<div class="blog-post">
<h2>Post Title 1</h2>
<img src="https://via.placeholder.com/800x400?text=Blog+Post+1" alt="Post Image">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vel urna euismod, lacinia elit ac, pulvinar mi. Aliquam erat volutpat. Nullam sed erat in ligula fermentum dictum.</p>
</div>
<div class="blog-post">
<h2>Post Title 2</h2>
<img src="https://via.placeholder.com/800x400?text=Blog+Post+2" alt="Post Image">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vel urna euismod, lacinia elit ac, pulvinar mi. Aliquam erat volutpat. Nullam sed erat in ligula fermentum dictum.</p>
</div>
</div>
</body>
</html>
简易博客布局
原创
©著作权归作者所有:来自51CTO博客作者小慕先森的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
基于JavaWeb的简易博客系统
基于JavaWeb的简易博客系统前言这是一个简易的博客系统,是这学期JavaWeb的期末项目(
spring sql apache