一.导航栏控制器的透明度设置 //将navigationBar设为隐藏 self.navigationController.navigationBar.hidden = YES; //将navigationBar设为半透明 self.navigationController....
分类:
其他好文 时间:
2015-10-20 17:50:07
阅读次数:
271
//但行文本省略号 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; //多行文本省略号 overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-b...
分类:
Web程序 时间:
2015-10-19 22:38:04
阅读次数:
220
表单: text,hidden,password,checkbox,radio,select提交事件: 提交表单的时候form标签是一个把关,所以第一种方法:在doSubmiiform里面(修改想要到后台的数据的标签,然后form.submit )怎么说这中方法很白痴,因为 浏览器默认type=.....
分类:
Web程序 时间:
2015-10-19 15:34:46
阅读次数:
159
document.hidden这个新出现的document.hidden属性,它显示页面是否为用户当前观看的页面,值为ture或false。document.visibilityStatevisibilityState的值要么是visible(表明页面为浏览器当前激活tab,而且窗口不是最小化状态)...
分类:
Web程序 时间:
2015-10-19 10:44:34
阅读次数:
1238
方法一:为父元素添加 overflow:hidden 第一个方法很简单,缺点是不太直观,即为父元素应用 overflow:hidden ,以强制它 包围浮动元素。 方法二:同时浮动父元素 第二种促使父元素包围其浮动子元素的方法,是也让...
分类:
其他好文 时间:
2015-10-19 02:06:51
阅读次数:
200
1.对父元素使用overflow:hidden;zoom:1,或者是overflow:auto;zoom:1。兼容性问题:该处使用zoom:1是为了兼容ie6,但是实际上,用height:1%;代替zoom:1;更好,因为它可以通过W3C。该方法缺点:内容增多时候容易造成不会自动换行导致内容被隐藏掉...
分类:
Web程序 时间:
2015-10-18 18:16:18
阅读次数:
233
一、Request 通过表单收集客户机数据input的type属性:text,checkbox,hidden,password,radio,file. 用户名: 密码: 性别:男 女 所在地: 爱好:唱歌 跳舞 跑步 读书 备注: 大头贴: ...
分类:
其他好文 时间:
2015-10-18 16:45:57
阅读次数:
218
做一个div盒子,设置over-flow:hidden,设置高度为auto。然后再盒子里排列若干inline-block,inline元素。自适应的话常用做法是用line-height,font-size加上垂直padding设置高度。font-size可以用pt或是em设置。这样在不同分辨率下能显...
分类:
Web程序 时间:
2015-10-17 17:23:23
阅读次数:
170
单行文本溢出:代码:css: #demo4-one{ width:150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}ht...
分类:
其他好文 时间:
2015-10-16 17:10:29
阅读次数:
156
1、文本溢出显示省略号:1.1单行文本、1 .inaline {2 overflow: hidden;3 white-space: nowrap;4 text-overflow: ellipsis;5 }1.2多行文本、1 .intwoline {2 disp...
分类:
Web程序 时间:
2015-10-16 14:53:27
阅读次数:
255