最近做项目的时候涉及到需要修改输入框的placeholder的字体颜色,我的CSS如下: ::-webkit-input-placeholder{ color: #c5c5c5;}::-moz-placeholder{ color: #c5c5c5; opacity: 1;/*这里之前是没有的,发现 ...
分类:
其他好文 时间:
2016-05-10 18:15:17
阅读次数:
3245
需求:产品嫌弃placeholder的字体太大,颜色太明显,要求跟正常输入时的字体及颜色不同 方法:设置placeholder的大小和颜色,实际上是设置placeholder的label的大小和颜色,但是当设置完之后,placeholder的字体有点偏上了,所以设置一下属性。 问题:嫌弃输入文字不居 ...
分类:
移动开发 时间:
2016-05-09 18:40:19
阅读次数:
206
#include
#include
#include
using namespace std;
class any
{
public:
//interface
class placeholder
{
public:
//
virtual ~placeholder(){}
//
virtual...
分类:
其他好文 时间:
2016-05-07 10:04:15
阅读次数:
157
- setItem:(CustomItem *)item { _item = item; // 占位图片 UIImage *placeholder = [UIImage imageNamed:@"placeholderImage"]; // 从内存\沙盒缓存中获得原图 UIImage *origin ...
分类:
Web程序 时间:
2016-05-04 15:46:52
阅读次数:
198
一、HTML5 placeholder相关的引言 placeholder在英汉词典中解释成了“占位符”。要理解并不难,请看此场景: “咦?”您可能会疑问,“这不是就是狗狗树下撒尿尿”。确实,该场景可以较好的诠释placeholder“占位符”之意。我们不妨将placeholder来个临时拆分:pla ...
分类:
Web程序 时间:
2016-05-02 16:59:36
阅读次数:
340
因为每个浏览器的CSS选择器都有所差异,所以需要针对每个浏览器做单独的设定(可以在冒号前面写input和textarea)。 ::-webkit-input-placeholder { /* WebKit browsers */ color:#999; } :-moz-placeholder { / ...
分类:
Web程序 时间:
2016-05-02 11:45:54
阅读次数:
227
Spring 整合 hibernate 配置 1. spring 配置管理datasource 及 sessionFactory 1) 引入相关jdbc配置文件。 <context:property-placeholder location="classpath:jdbc.properties" / ...
分类:
其他好文 时间:
2016-04-27 16:59:30
阅读次数:
168
目前PC端对input 的date类型支持不好,我试下来的结果是只有chrome支持。firefox、IE11 都不支持。而且PC端有很多日历控件可供使用。就不去多考虑这点了。 那么在移动端的话,ios和安卓都是支持的,但是当type类型是date的时候placeholder属性又会失效。PC端的c ...
分类:
移动开发 时间:
2016-04-26 12:16:27
阅读次数:
313
//控制placeHolder的位置,左右缩20 -(CGRect)placeholderRectForBounds:(CGRect)bounds { CGRect inset = CGRectMake(bounds.origin.x+100, bounds.origin.y, bounds.siz ...
分类:
其他好文 时间:
2016-04-26 00:36:26
阅读次数:
239
spring 使用注解装配的Bean如何使用property-placeholder属性配置中的值 这个问题不大不小,以前偷懒凡是碰到需要引用属性文件中的类时就改用xml来配置。 今天看了下spring 3 的El,看来有更简单的解决方式 在XML配置文件中配置一个util:properties c ...
分类:
其他好文 时间:
2016-04-25 11:41:32
阅读次数:
889