今天工作中遇到一个问题,就是未知行数的文字在div中怎么垂直居中,如下面的3个图: 图1 图2 图3 图1是2行文字的效果,图2是不经过css垂直居中处理的效果,图3是经过css垂直居中后的效果,html代码如下:(经测试,除了IE7,其他浏览器都成功的垂直居中了) 后面一篇文章是我转载的一篇参考资 ...
分类:
其他好文 时间:
2017-08-17 00:53:55
阅读次数:
198
480 pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl 481 virtualenv --system-site-packages ~/tensorflow 482 ...
分类:
系统相关 时间:
2017-08-17 00:51:37
阅读次数:
338
1、表单标签 所有需要提交到服务器端的表单项必须使用<form></form>括起来! form 标签属性: action,整个表单提交的位置(可以是一个页面,也可以是一个后台 java 代码) method,表单提交的方式(get/post/delete……等 7 种) Get 与 post 提交 ...
分类:
Web程序 时间:
2017-08-17 00:39:22
阅读次数:
212
简介:该插件是基于bootstrapvalidator.js进行修改编写的,写法类似,可兼容ie7+以上 一、使用方法 1.引用jQuery.js / jQValidator.js / jQValidator.css <link href="css/jQValidator.css" rel="sty ...
分类:
Web程序 时间:
2017-08-17 00:35:36
阅读次数:
286
需求:经典布局 —— 头尾固定高度中间高度自适应布局 头部固定高度,宽度100%自适应父容器; 底部固定高度,宽度100%自适应父容器; 中间是主体部分,自动填满,浏览器可视区域剩余部分,内容超出则中间部分出现流动条; 整个内容填满浏览器可视区域,并且不超出此区域! 方法1:position:abs ...
分类:
其他好文 时间:
2017-08-16 22:00:40
阅读次数:
192
众所周知,jQuery官方效果中有隐藏/显示,淡入淡出,以及上下滑动效果。 隐藏和显示HTML元素通过jQuery的hide()和show()方法来实现,比如这一段代码实现了简单的显示和隐藏效果 淡入淡出的方法为:fadeIn() 用于淡入已隐藏的元素,fadeOut() 方法用于淡出可见元素。其语 ...
分类:
Web程序 时间:
2017-08-16 21:44:40
阅读次数:
243
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .blue{ background: #ccf; color:#339; } .pink{ background: #a ...
分类:
Web程序 时间:
2017-08-16 19:22:00
阅读次数:
234
Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or ...
分类:
其他好文 时间:
2017-08-16 19:19:02
阅读次数:
189
A.class //先定义一个接口 public interface Listener { //回调方法 void 回调方法(); } //申明一个接口 private Listener mLinstener; //一个set接口的方法 public void setListener(Listene ...
分类:
其他好文 时间:
2017-08-16 19:18:07
阅读次数:
161
Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the ...
分类:
其他好文 时间:
2017-08-16 19:09:02
阅读次数:
196