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