有三种实现方式:伪元素(pseudo-elements)、伪类(pseudo-classes)和Notihing。WebKit和Blink(Safari,GoogleChrome,Opera15+)使用伪元素::-webkit-input-placeholderMozillaFirefox4-18使用伪类:-moz-placeholderMozillaFirefox19+使用伪元素::-moz-placeholderIE10使用伪..
分类:
Web程序 时间:
2015-08-27 11:19:44
阅读次数:
141
代理模式 Proxy Pattern 委托模式Provide a surrogate or placeholder for another object to control access to it.为其他对象提供一种代理以控制对这个对象的访问。抽象主题角色(Subject):该角色是真实主题和代理主题的共同接口,以便在任何可以使用真实主题的地方都可以使用代理主题。package com.Desi...
分类:
编程语言 时间:
2015-08-27 02:19:24
阅读次数:
267
1 $.fn.placeHolder = function(){ 2 $(this).each(function(i, el) { 3 var self = $(el); 4 if ($.browser.msie && !("placeholder" in ...
分类:
其他好文 时间:
2015-08-26 19:54:16
阅读次数:
100
if (navigator.userAgent.indexOf("MSIE")>0) { $("input[placeholder]").each(function(){ $(this).val((($(this).val()=="")?$(this).attr("placeholder"...
分类:
其他好文 时间:
2015-08-25 19:03:47
阅读次数:
120
当前很多表单提示使用了表单属性placeholder,可这属性不兼容IE8以下的浏览器,我自己写了一个兼容处理js// 兼容IE8以下浏览器input不能智能提示功能 if(navigator.appName == "Microsoft Internet Explorer" && (navig...
分类:
Web程序 时间:
2015-08-25 16:02:26
阅读次数:
171
SDWebImageManager -- 单例1 - (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(...
分类:
Web程序 时间:
2015-08-21 21:02:26
阅读次数:
202
angularjs 中的$watch 用来监控变量的变化,并做出改变.
在 ionic 中也有这个需求,这有个小小的坑.
<input type="text" placeholder="Search" ng-model=...
分类:
其他好文 时间:
2015-08-18 16:20:21
阅读次数:
112
表单验证类使用说明:myvalidation类的使用说明:目前实现功能:form表单的非空验证和手机号码验证默认弹出提示框,提示框的内容优先选择:input对应lable文本+"不能为空"其次选择:input的placeholder字段因此至少保证,上述至少有一种是想要的警告内容使用方法:1,jsp...
分类:
其他好文 时间:
2015-08-18 16:06:27
阅读次数:
109
1. 简介代理模式(Proxy Pattern)是GoF 23种Java常用设计模式之一。代理模式的定义:Provide a surrogate or placeholder for another object to controlaccess to it(为其他对象提供一种代理以控制对这个对象的...
分类:
编程语言 时间:
2015-08-17 19:21:56
阅读次数:
145
最近将公司的界面开发库从WX转换到了QT,有了信号和槽,原本我们在使用WX的时候,为了使用信号,我们是使用BOOST的signal2库,到了QT有了信号槽,这个就没什么必要了但是前段时间使用QT发现QT的信号和槽没有placeholder,也就是占位符,于是信号和槽声明只能严格地一样,比如void ...
分类:
编程语言 时间:
2015-08-16 00:19:15
阅读次数:
224