<tdstyle="word-break:break-all">强制换行<tdstyle="width:80px;display:block;boverflow:hidden;">超出隐藏,注意要设置宽度。内联转化为块状:display:block或float:left/right块状转化为内联:display:inline;但是要注意内联元素是不能设置宽度和高度的。那就..
分类:
其他好文 时间:
2014-08-14 04:04:48
阅读次数:
554
1.使用隐藏域Session、Application和Cache都是保存在服务器内存中的。一般来说我们是无权访问客户端的机器,把数据直接保存在客户端的(Cookie是一个例外,不过Cookie只能保存不超过4K的字符串)。我们可以想一下还有哪里可以让我们暂时保存数据的?那就是页面!如果我们在Web页...
分类:
其他好文 时间:
2014-08-14 01:19:48
阅读次数:
229
1 text-overflow: -o-ellipsis-lastline;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical...
分类:
Web程序 时间:
2014-08-13 21:52:17
阅读次数:
231
1. 伪类 :after 1. 清楚浮动div:after{ overflow:hidden; } 2. 制作三角形div:after{ content:''; display:block; width:0; border-top:8px solid #000; border-left:8p...
分类:
移动开发 时间:
2014-08-13 12:56:26
阅读次数:
234
Problem Description
Jerboas are small desert-living animals, which resemble mice with a long tufted tail and very long hind legs. Jerboas shelter in well-hidden burrows. They create two types o...
分类:
其他好文 时间:
2014-08-13 10:33:25
阅读次数:
259
KMP的应用。直接使用s1产生next 数组,然后在s2中搜索s1,那么记录最后一个搜索到的数值,就是s1的前缀在s2中的最长后缀了。
本题应该不能直接调用strstr了吧。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
...
分类:
其他好文 时间:
2014-08-12 19:09:14
阅读次数:
192
点评:用了overflow:hidden 会影响 list-style,即当ul 中的li 的overflow 为hidden的时候,list-style不起作用,不显示前面的点、圈等样式,在ul或li内加入样式:list-style-position: inside; 即可实际上用了overflo...
分类:
其他好文 时间:
2014-08-12 17:02:34
阅读次数:
206
让LI列表中的文字一行一行交替出现,每一行停留数秒后自动转到下一行显示,使用灵活,JS代码非常精简,推荐学习参考和使用。这里给LI设置line-height属性以便控制内容溢出。<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN"><HTML><HEAD><TITLE&..
分类:
Web程序 时间:
2014-08-12 13:55:15
阅读次数:
244
第一次上传app哦,记录一下,以便下次需要查看。 登录开发者账号 https://developer.apple.com/ 选择Member Center 登录 登录完成后 选择Certificates, Identifiers & Profiles 先生成证书,点击Identifiers 点击...
分类:
移动开发 时间:
2014-08-12 09:08:17
阅读次数:
327
无标题文档鸟巢效果图//这里是包括图片的最外层div是为了定位而设置的与滚动没关系 // 这里是包括图片的div,也就是须要实现子级div滚动的层(scrollLeft是相对于当前层的子层的),这里必须这是好宽高已经overflow:hidden //这个是须要滚动的图片包括层,他的宽度在图片左右....
分类:
编程语言 时间:
2014-08-11 11:34:22
阅读次数:
348