码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 【前端】博客系统——简单的页面设计


    前端 传送门

    【前端】HTML入门 —— HTML的常见标签

    【前端】CSS(1) —— CSS的基本语法和一些简单的选择器


    [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-SOYG5vy6-1669274254128)(C:/Users/gu%27jiu/Pictures/c/20200322120714_slipb.gif)]

    博客系统 (简单的页面设计)

    在这里插入图片描述


    目录

    • 页面介绍
    • 效果预览
    • 代码实现
      • 实现博客列表页
        • 实现导航栏 + 版心
        • 实现导航栏 + 部分版心样式
        • 实现列表页版心样式
      • 实现博客正文页
        • 实现导航栏 + 版心
        • 实现正文页版心样式
      • 实现博客登录页
        • 实现导航栏 + 版心
        • 实现登录页版心样式
      • 实现博客编辑页
        • 实现导航栏 + 版心 (Markdown)
        • 实现博客编辑页样式


    页面介绍

    主要分成四个页面:

    • 博客列表页
    • 博客正文页
    • 博客登陆页
    • 博客编辑页

    基本文件组成


    效果预览

    博客列表页效果

    博客详情页效果

    博客登陆页效果

    博客编辑页效果


    代码实现

    实现博客列表页

    创建 blog_list.html, 编写博客列表页

    实现导航栏 + 版心

    DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>博客列表title>
        <link rel="stylesheet" href="css/common.css">
        <link rel="stylesheet" href="css/blog_list.css">
    head>
    <body>
        
        <div class="nav">
            <img src="img/Gujiu.png" alt="">
            <span class="title">我的博客系统span>
            
            <div class="spacer">div>
            <a href="blog_list.html">主页a>
            <a href="blog_edit.html">写博客a>
            <a href="#">注销a>
        div>
    
        
        <div class="container">
            
            <div class="container-left">
                <div class="card">
                    
                    
                    <img src="img/gujiu!.jpg" alt="">
                    
                    <h3>Gujiu ! !h3>
                    <a href="https://gitee.com/Gujiu_u">gitee 地址a>
                    <div class="counter">
                        <span>文章span>
                        <span>分类span>
                    div>
                    <div class="counter">
                        <span>2span>
                        <span>1span>
                    div>
                div>
            div>
            
            <div class="container-right">
                
                <div class="blog">
                    <div class="title">我的第一篇博客div>
                    <div class="date">2022-11-17 12:00:00div>
                    <div class="desc">
                        从今天起, Gujiu 开始写博客. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel ratione debitis veritatis nobis voluptates. Ea earum, possimus laboriosam quas nostrum eaque necessitatibus delectus ex? Facere doloribus in quia voluptas?
                    div>
                    
                    <a href="blog_detail.html">查看全文 >>a>
                div>
                <div class="blog">
                    <div class="title">我的第二篇博客div>
                    <div class="date">2022-11-17 12:00:00div>
                    <div class="desc">
                        Gujiu 继续写博客. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel ratione debitis veritatis nobis voluptates. Ea earum, possimus laboriosam quas nostrum eaque necessitatibus delectus ex? Facere doloribus in quia voluptas?
                    div>
                    
                    <a href="#">查看全文 >>a>
                div>
                <div class="blog">
                    <div class="title">我的第三篇博客div>
                    <div class="date">2022-11-17 12:00:00div>
                    <div class=
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
  • 相关阅读:
    笙默考试管理系统-MyExamTest----codemirror(24)
    30 Python的matplotlib模块
    一篇文章带您了解PHP数组
    操作系统历史---03
    【蓝桥杯选拔赛真题25】python输出指定数据 青少年组蓝桥杯python 选拔赛STEMA比赛真题解析
    2.7.C++中static关键字的5种基本用法
    92---Python 直角坐标系下绘制抛物线图像
    android-app上架必要条件
    [WSL][ubuntu][原创]windows上ssh WSL的linux子系统
    OpenTiny Vue 支持 Vue2.7 啦!
  • 原文地址:https://blog.csdn.net/m0_58592142/article/details/128018885
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号