- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 html图片间隙处理
<img style="width: 60%;vertical-align: bottom;" src="images/shareleshua/button.png" />使用vertical-align: bottom;
2020-08-28 10:51:56
405
原创 html 子元素相对父元素垂直居中
<div class="father"> <div class="son"> 子元素 </div></div>子元素相对父元素垂直居中,在不清楚父元素高度的情况下,可使用如下方式:.father{ position:relative;}.son{ position: absolute; top: 50%; transform: translateY(-50%);}..
2020-08-28 10:24:38
594
原创 h5移动端自适应布局
场景:为适应各种大小的屏幕自适应布局我知道的两种方式1.使用媒体查询,下面制定了几种适应方式,例如第一个表示屏幕宽度在320px-360px之间的,html字体大小适配为13.65px<style> @media only screen and (max-width: 360px) and (min-width: 320px){ html{ ...
2019-04-08 19:02:54
7216
原创 小程序 下载功能
小程序下载实现 这是小程序结构图和实现效果1.config->httpconfig.js这是个工具jsfunction sendPost(cb, data, url) { wx.request({ url: url, method: 'POST', dataType: "json", header: { "Content-T...
2019-03-21 16:59:44
2106
原创 线程池原理
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, ...
2019-02-22 22:50:50
128
原创 spring boot+jpa框架搭建
spring boot+jpa框架搭建1.首先依赖jar的引入 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <...
2018-06-30 17:53:47
646
原创 spring+spring mvc+spring data+jpa+mysql/oracle框架搭建
spring+spring mvc+spring data+jpa+mysql/oracle框架搭建
2018-06-30 16:26:54
1301
原创 小程序 图片+视频轮播
index.wxml <swiper class="swiper" indicator-dots="true" autoplay="{{flag}}" interval="5000" duration="1000"> <block wx:for="{{movies}}" wx:for-index="index"> ...
2018-06-27 17:29:44
8038
2
原创 JPA接口查询
JPA接口查询 本人首次玩,有不对的地方请见谅,不喜勿喷,谢谢.有时可以看到在dao里面的接口方法,有些是没有用注解写sql语句也没有在配置文件写sql语句的,而只是有个光秃秃的接口名,但是它既然还可以查询到数据库里的数据.因为这是用到了jpa,接口名遵循jpa方法命名规则,通过接口名就可以解析成sql语句,然后查到数据. 如有需要可以找度娘先了解下jpa接下来本人通过下面的接口类来讲解
2017-11-30 18:15:54
2301
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人