一、单行内容的居中只考虑单行是最简单的,无论是否给容器固定高度,只要给容器设置line-height和height,并使两值相等,再加上over-flow: hidden就可以了.middle-demo-1{height: 4em;line-height: 4em;overflow: hidden;...
分类:
Web程序 时间:
2014-07-16 23:10:39
阅读次数:
254
/*
本文章由 莫灰灰 编写,转载请注明出处。
作者:莫灰灰 邮箱: minzhenfei@163.com
*/
1. KeyStore Service
在Android中,/system/bin/keystore进程提供了一个安全存储的服务。在过去的版本中,其他程序主要用过UNIX socket的守护进程/dev/socket/keystore去访问这个服务。然而...
分类:
移动开发 时间:
2014-06-27 23:25:30
阅读次数:
476
Google官方的下拉刷新组建activity代码实现:/** * The SwipeRefreshLayout should be used whenever the user * can refresh the contents of a view via a vertical swipe g....
分类:
移动开发 时间:
2014-06-27 21:47:09
阅读次数:
324
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:
其他好文 时间:
2014-06-27 12:20:47
阅读次数:
245
关于我们| .footer{ position:relative; overflow:hidden;}.ft{ height:75px; background:#ff...
分类:
其他好文 时间:
2014-06-26 23:57:53
阅读次数:
281
1、实现放大缩略图(CSS3)通过使用overflow:visible效果仅见:http://runjs.cn/detail/exwrb9rn2.同上的效果效果仅见:http://runjs.cn/detail/dbitgkfz3.css3使得鼠标移入图片,其他图片模糊效果仅见:http://run...
分类:
Web程序 时间:
2014-06-26 20:56:13
阅读次数:
199
overflow:visible|auto|hidden|scrolloverflow-x:横向滚动条overflow-y:纵向滚动条(2)水平滚动条 如果只想出现水平的滚动条,一般还要配合禁止换行的设置,例如:2.滚动条颜色属性: face-color:滑块颜色 hightlight-colo.....
分类:
其他好文 时间:
2014-06-25 15:42:55
阅读次数:
203
csapp page124. practice problem 2.35/* Determine whether arguments can be multiplied without overflow */int tmult_ok(int x, int y){ int p = x*y; ...
分类:
其他好文 时间:
2014-06-25 12:47:24
阅读次数:
230
是一个块级元素。这意味着它的内容自动地开始一个新行。实际上,换行是 固有的唯一格式表现(摘自W3C school)。在编写页面的时候(这里是指jsp),有遇到div标签不能随着内部的内容扩充本身大小的情况,借助div标签的height和overflow属性,可以完美解决问题。情况一:布局的时...
分类:
其他好文 时间:
2014-06-25 11:59:40
阅读次数:
21825
一个垂直方向的LinearLayout,包含两个View。下面一个View(工具栏)固定在屏幕底部,上面的View占据剩余的屏幕空间。<LinearLayoutandroid:orientation="vertical"android:id="@+id/vertical_layout"android:layout_width="match_parent"android:layout_height="match_paren..
分类:
其他好文 时间:
2014-06-24 16:57:06
阅读次数:
199