Spring boot开发小而美的个人博客-页面开发

2023-10-04 23:10

本文主要是介绍Spring boot开发小而美的个人博客-页面开发,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

页面开发

创建blog

在blog里创建static文件夹,在static里面创建css、images、js文件夹
在这里插入图片描述
创建index.html文件
在这里插入图片描述

页面头部加底部

在这里插入图片描述

创建me.css文件
在这里插入图片描述
在这里插入图片描述
加入图标样式
在这里插入图片描述
加入搜索框
在这里插入图片描述
编写底部内容
在这里插入图片描述
底部css
在这里插入图片描述

页面中间内容

左边博客列表
在这里插入图片描述
右边的top

在这里插入图片描述
手机端
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
css

body{background: url("../images/bg.png");
}
.m-padded-mini{padding: 0.2em !important;
}
.m-padded-tiny{padding: 0.3em !important;
}
.m-padded-tb-mini{padding-top: 0.2em !important;padding-bottom:0.2em !important;
}
.m-padded-tb-tiny{padding-top: 0.3em !important;padding-bottom:0.3em !important;
}
.m-padded-tb-small{padding-top: 0.5em !important;padding-bottom:0.5em !important;
}
.m-padded-tb{padding-top: 1em !important;padding-bottom:1em !important;
}
.m-padded-tb-large{padding-top: 2em !important;padding-bottom:2em !important;
}
.m-padded-tb-big{padding-top: 3em !important;padding-bottom:3em !important;
}
.m-padded-tb-huge{padding-top: 4em !important;padding-bottom:4em !important;
}
.m-padded-tb-massive{padding-top: 5em !important;padding-bottom:5em !important;
}/*-----text-----*/
.m-text{font-weight: 300 !important;letter-spacing: 1px !important;line-height: 1.8;
}
.m-text-thin{font-weight: 300 !important;
}
.m-text-spaced{letter-spacing: 1px !important;
}
.m-text-lined{line-height: 1.8;
}/*-----margin-----*/
.m-margin-top-small{margin-top: 0.5em !important;}
.m-margin-top{margin-top: 1em !important;}
.m-margin-top-large{margin-top: 2em !important;}
.m-margin-tb-tiny{margin-top: 0.3em !important;margin-bottom: 0.3em !important;
}/*-----opacity-----*/
.m-opacity-mini{opacity: 0.8 !important;
}
.m-opacity-tiny{opacity: 0.6 !important;
}/*-----position-----*/
.m-right-top{position: absolute;top: 0;right: 0;
}/*-----display-----*/
.m-inline-block{display: inline-block !important;
}/*----container----*/
.m-container{max-width: 72em !important;margin: auto !important;
}/*----color----*/
.m-black{color: #333 !important;
}.m-mobile-show{display: none !important;
}@media screen and (max-width: 768px) {.m-mobile-hide{display: none !important;}.m-mobile-show{display: block !important;}
}

效果图
在这里插入图片描述
在这里插入图片描述

这篇关于Spring boot开发小而美的个人博客-页面开发的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/2912

相关文章

Java 实用工具类Spring 的 AnnotationUtils详解

《Java实用工具类Spring的AnnotationUtils详解》Spring框架提供了一个强大的注解工具类org.springframework.core.annotation.Annot... 目录前言一、AnnotationUtils 的常用方法二、常见应用场景三、与 JDK 原生注解 API 的

Maven中引入 springboot 相关依赖的方式(最新推荐)

《Maven中引入springboot相关依赖的方式(最新推荐)》:本文主要介绍Maven中引入springboot相关依赖的方式(最新推荐),本文给大家介绍的非常详细,对大家的学习或工作具有... 目录Maven中引入 springboot 相关依赖的方式1. 不使用版本管理(不推荐)2、使用版本管理(推

在 Spring Boot 中实现异常处理最佳实践

《在SpringBoot中实现异常处理最佳实践》本文介绍如何在SpringBoot中实现异常处理,涵盖核心概念、实现方法、与先前查询的集成、性能分析、常见问题和最佳实践,感兴趣的朋友一起看看吧... 目录一、Spring Boot 异常处理的背景与核心概念1.1 为什么需要异常处理?1.2 Spring B

如何在 Spring Boot 中实现 FreeMarker 模板

《如何在SpringBoot中实现FreeMarker模板》FreeMarker是一种功能强大、轻量级的模板引擎,用于在Java应用中生成动态文本输出(如HTML、XML、邮件内容等),本文... 目录什么是 FreeMarker 模板?在 Spring Boot 中实现 FreeMarker 模板1. 环

SpringMVC 通过ajax 前后端数据交互的实现方法

《SpringMVC通过ajax前后端数据交互的实现方法》:本文主要介绍SpringMVC通过ajax前后端数据交互的实现方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价... 在前端的开发过程中,经常在html页面通过AJAX进行前后端数据的交互,SpringMVC的controll

Spring Security自定义身份认证的实现方法

《SpringSecurity自定义身份认证的实现方法》:本文主要介绍SpringSecurity自定义身份认证的实现方法,下面对SpringSecurity的这三种自定义身份认证进行详细讲解,... 目录1.内存身份认证(1)创建配置类(2)验证内存身份认证2.JDBC身份认证(1)数据准备 (2)配置依

SpringBoot整合OpenFeign的完整指南

《SpringBoot整合OpenFeign的完整指南》OpenFeign是由Netflix开发的一个声明式Web服务客户端,它使得编写HTTP客户端变得更加简单,本文为大家介绍了SpringBoot... 目录什么是OpenFeign环境准备创建 Spring Boot 项目添加依赖启用 OpenFeig

Java Spring 中 @PostConstruct 注解使用原理及常见场景

《JavaSpring中@PostConstruct注解使用原理及常见场景》在JavaSpring中,@PostConstruct注解是一个非常实用的功能,它允许开发者在Spring容器完全初... 目录一、@PostConstruct 注解概述二、@PostConstruct 注解的基本使用2.1 基本代

springboot使用Scheduling实现动态增删启停定时任务教程

《springboot使用Scheduling实现动态增删启停定时任务教程》:本文主要介绍springboot使用Scheduling实现动态增删启停定时任务教程,具有很好的参考价值,希望对大家有... 目录1、配置定时任务需要的线程池2、创建ScheduledFuture的包装类3、注册定时任务,增加、删

SpringBoot整合mybatisPlus实现批量插入并获取ID详解

《SpringBoot整合mybatisPlus实现批量插入并获取ID详解》这篇文章主要为大家详细介绍了SpringBoot如何整合mybatisPlus实现批量插入并获取ID,文中的示例代码讲解详细... 目录【1】saveBATch(一万条数据总耗时:2478ms)【2】集合方式foreach(一万条数