HTML+CSS博客文章列表

源代码在图片后面 点赞❤️+收藏⭐️+关注💕

图示           感谢各位大佬支持  😘😘😘

419508071af74628b0336cb8517b319c.jpg

源代码

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>博客文章列表</title>
<style>
  body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }

  table {
    border-collapse: collapse;
    width: 80%;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
  }

  th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
  }

  th {
    background-color: #f2f2f2;
  }

  .category-badge {
    display: inline-block;
    color: white;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 5px;
  }

  .category-badge.frontend { background-color: orange; }
  .category-badge.opensource { background-color: red; }
  .category-badge.vue { background-color: blue; }

  a {
    color: black;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }
</style>
</head>
<body>
<table>
  <thead>
    <tr>
      <th>博客文章名</th>
      <th>类别</th>
      <th>发布时间</th>
      <th>作者</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a href="blog1.html">文章标题1</a></td>
      <td>
        <span class="category-badge frontend">前端</span>
        <span class="category-badge opensource">开源</span>
        <span class="category-badge vue">博客</span>
      </td>
      <td>2024年1月3日</td>
      <td>睿智的海鸥</td>
    </tr>
    <!-- 重复以下行三次 -->
    <tr>
      <td><a href="blog1.html">文章标题2</a></td>
      <td>
        <span class="category-badge frontend">前端</span>
        <span class="category-badge opensource">开源</span>
        <span class="category-badge vue">博客</span>
      </td>
      <td>2024年1月3日</td>
      <td>睿智的海鸥</td>
    </tr>
    <tr>
      <td><a href="blog1.html">文章标题3</a></td>
      <td>
        <span class="category-badge frontend">前端</span>
        <span class="category-badge opensource">开源</span>
        <span class="category-badge vue">博客</span>
      </td>
      <td>2024年1月3日</td>
      <td>睿智的海鸥</td>
    </tr>
    <tr>
      <td><a href="blog1.html">文章标题4</a></td>
      <td>
        <span class="category-badge frontend">前端</span>
        <span class="category-badge opensource">开源</span>
        <span class="category-badge vue">博客</span>
      </td>
      <td>2024年1月3日</td>
      <td>睿智的海鸥</td>
    </tr>
  </tbody>
</table>
</body>
</html>

相关推荐

  1. 使用 Selenium 自动化获取 CSDN 资源列表

    2024-07-16 00:00:05       25 阅读
  2. 使用 Selenium 自动化获取 CSDN 资源列表详解

    2024-07-16 00:00:05       29 阅读
  3. vDPA资料/文档/ 链接

    2024-07-16 00:00:05       58 阅读
  4. 使用"山水"的排序功能制作"专题文章

    2024-07-16 00:00:05       18 阅读
  5. 了发

    2024-07-16 00:00:05       26 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-16 00:00:05       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-16 00:00:05       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-16 00:00:05       58 阅读
  4. Python语言-面向对象

    2024-07-16 00:00:05       69 阅读

热门阅读

  1. 数据结构初阶(C语言)-顺序表

    2024-07-16 00:00:05       22 阅读
  2. C# 做一个临时的对象结构,并用linq查找

    2024-07-16 00:00:05       16 阅读
  3. 动态路由-ospf

    2024-07-16 00:00:05       23 阅读
  4. 如何备份Syslog配置文件?

    2024-07-16 00:00:05       18 阅读
  5. float和double使用注意问题

    2024-07-16 00:00:05       19 阅读
  6. excel及panda的部分内容

    2024-07-16 00:00:05       20 阅读
  7. 消息中间件面试题

    2024-07-16 00:00:05       21 阅读
  8. Kafka配置SSL信道加密

    2024-07-16 00:00:05       21 阅读
  9. TensorFlow 的基本概念和使用场景

    2024-07-16 00:00:05       18 阅读