::-webkit-input-placeholder { /* WebKit browsers */ color: #999; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #999; } ::-moz-placeholder ...
分类:
其他好文 时间:
2016-07-01 18:31:01
阅读次数:
222
这是我的第一个博客,还是写点正经的,希望对做前端朋友有所帮助。最近在做的项目placeholder不兼容ie,这个可以兼容IE的输入框的HTML新增的placeholder的显示下面是代码:$( document ).ready( function(){ //ie下placeholder的兼容 fu ...
分类:
Web程序 时间:
2016-06-30 12:28:08
阅读次数:
181
一,效果图。 二,工程图。 三,代码。 RootViewController.h #import <UIKit/UIKit.h> @interface RootViewController : UIViewController <UITextFieldDelegate> @end RootViewC ...
分类:
其他好文 时间:
2016-06-28 09:35:21
阅读次数:
127
self.title=@"修改UITextField的placeholder字体颜色"; UITextField *textTF=[[UITextField alloc]initWithFrame:CGRectMake(20,130,300,30)]; textTF.placeholder=@"修改 ...
分类:
其他好文 时间:
2016-06-27 15:18:49
阅读次数:
120
背景 最近项目要上线,需要开发一个数据迁移程序。程序的主要功能就是将一个数据库里的数据,查询出来经过一系列处理后导入另一个数据库。考虑到开发的方便快捷。自然想到用spring和mybatis整合一下。甚至用mybatis的自动代码生成,可以省下大量dao层的开发。 整合的坑 之前的项目:以前也有过这 ...
分类:
编程语言 时间:
2016-06-24 12:50:26
阅读次数:
182
想实现的效果: // // ViewController.m // A14 - 带占位符的textview // // Created by vic fan on 16/6/24. // Copyright © 2016年 李洪强. All rights reserved. // #import " ...
分类:
其他好文 时间:
2016-06-24 10:45:44
阅读次数:
134
- (void)viewDidLoad { [super viewDidLoad]; self.title=@"修改UITextField的placeholder字体颜色"; UITextField *textTF=[[UITextField alloc]initWithFrame:CGRectMa ...
分类:
其他好文 时间:
2016-06-23 09:58:26
阅读次数:
155
placeholder右对齐的写法,如果你不考虑移动端的话,完全可以使用text-align:right,不过如果考虑移动端的话,在有一些手机上,即使你写了text-align:right,placeholder也是左对齐的,经过百度后得出,http://stackoverflow.com/ques ...
分类:
其他好文 时间:
2016-06-22 19:01:19
阅读次数:
193
一,效果图。 二,工程图。 三,代码。 RootViewController.h #import <UIKit/UIKit.h> @interface RootViewController : UIViewController <UITextViewDelegate> { UITextView *p ...
分类:
其他好文 时间:
2016-06-22 09:23:09
阅读次数:
130
新增input 内属性 1,required:若文本内容为空,阻止表单提交格式,写入单词即可 如:<input type="text" name="username" required/> 2,placeholder:文本框里默认显示内容如:<input type="text" name="user ...
分类:
Web程序 时间:
2016-06-17 00:43:11
阅读次数:
158