一、当文字与图片在一行,需要将文字与图片底对齐,需要这样写:<li>记住密码<img src="" align="bottom" /></li>二、当文字与图片在一行,需要将文字与图片居中对齐,需要这样写:<li>记住密码<img src="static/img/xyx.jpg" align="mi ...
分类:
其他好文 时间:
2017-07-15 12:38:00
阅读次数:
182
1. css中: a:link { /*表示普通的,未被访问的链接状态*/ color: black;} a:visited { /*表示链接被访问过后的状态*/ color: blueviolet;} a:hover { /*表示鼠标放在上面时的状态*/ color: red;}a:active ...
分类:
Web程序 时间:
2017-07-15 10:17:46
阅读次数:
207
session失效时间设置 一、java代码 request.getSession().setMaxInactiveInterval(1800);/*秒为单位*/ 二、web.xml <session-config> <!--分钟为单位--> <session-timeout>30</session ...
分类:
其他好文 时间:
2017-07-14 20:28:41
阅读次数:
124
select * into target_table from source_table; insert into target_table(column1,column2) select column1,5 from source_table; 以上两句都是将源表source_table的记录插入 ...
分类:
其他好文 时间:
2017-07-14 19:30:10
阅读次数:
171
$("ul.nav-list li a").each(function () { //$("ul.nav-list li").removeClass("active"); if ($($(this))[0].href == String(window.location)) if ($(this).p ...
分类:
其他好文 时间:
2017-07-14 14:43:38
阅读次数:
321
在配置文件中添加配置如下(我使用的是多数据源): spring.datasource.primary.url=jdbc\:mysql\://localhost\:3306/test?useUnicode\=true&characterEncoding\=utf-8spring.datasource. ...
分类:
数据库 时间:
2017-07-14 13:37:11
阅读次数:
370
这个操作搞了好久,解决起来好简单。。。 大部分摘抄出自这里https://developer.mozilla.org/zh-CN/docs/Web/API/Document/execCommand 1 <p>点击复制后在右边textarea CTRL+V看一下</p> 2 <input type=" ...
分类:
Web程序 时间:
2017-07-13 20:36:08
阅读次数:
254
安装NTP之后,systemctlenablentpd设置为开机自动启动,但是重启之后NTP并没有启动,#systemctlstatusntpd
●ntpd.service-NetworkTimeService
Loaded:loaded(/usr/lib/systemd/system/ntpd.service;enabled;vendorpreset:disabled)
Active:inactive(dead)从给出的信息可知ntp..
分类:
其他好文 时间:
2017-07-13 19:09:47
阅读次数:
2306
出现虚拟网卡是因为安装时启用了 libvirtd 服务后生成的关闭方法virsh net-list名称 状态 自动开始 持久 default active yesvirsh net-destroy defaultvirsh net-undefine defaultsystemctl restart ...
分类:
其他好文 时间:
2017-07-13 16:32:20
阅读次数:
254