CSS input 背景提示
来源:互联网 发布:中兴对讲机软件 编辑:程序博客网 时间:2024/06/07 05:31
/* 通用 */::-webkit-input-placeholder { color:#f00; }::-moz-placeholder { color:#f00; } /* firefox 19+ */:-ms-input-placeholder { color:#f00; } /* ie */input:-moz-placeholder { color:#f00; }/* webkit专用 */#field2::-webkit-input-placeholder { color:#00f; }#field3::-webkit-input-placeholder { color:#090; background:lightgreen; text-transform:uppercase; }#field4::-webkit-input-placeholder { font-style:italic; text-decoration:overline; letter-spacing:3px; color:#999; }/* mozilla专用 */#field2::-moz-placeholder { color:#00f; }#field3::-moz-placeholder { color:#090; background:lightgreen; text-transform:uppercase; }#field4::-moz-placeholder { font-style:italic; text-decoration:overline; letter-spacing:3px; color:#999; }
<p><input autofocus="autofocus" id="field1" name="fname" type="text" placeholder="请输入你的姓名..." /></p>
<p><input id="field2" name="lname" type="text" placeholder="请输入你的昵称..." /></p>
<p><input id="field3" name="pass" type="password" placeholder="请输入你的新密码..." /></p>
<p><input id="field4" name="pass2" type="password" placeholder="请再次输入你的新密码..." /></p>
http://www.webhek.com/html5-placeholder-css/
0 0
- CSS input 背景提示
- HTML5中input背景提示文字(placeholder)的CSS美化
- HTML5中input背景提示文字(placeholder)的CSS美化
- HTML5中input背景提示文字(placeholder)的CSS美化
- HTML5中input背景提示文字(placeholder)的CSS美化
- HTML5 placeholder美化input背景提示文字
- css input 输入框背景透明
- IE8背景平铺 input输入框提示语
- HTML5 Placeholder实现input背景文字提示效果
- 【Css】将input的输入框背景呈现透明
- input css
- CSS 背景
- CSS 背景
- CSS背景
- CSS背景
- css 背景
- CSS 背景
- CSS背景
- Oracle报错:variant conversion error for variable:v49
- 解答网友问题005
- Rotate List
- 基于JMS消息中间件的分布式系统初探究(二) - 服务端反射调用组件方法
- 使用CSDN-markdown编辑器 (这篇文章是查看Markdown帮助时自动生成的)
- CSS input 背景提示
- centos6.5使用inode客户端登录校园网
- LeetCode - Maximum Subarray - Frequent
- 学习iOS
- 对于桌面应用程序
- UISearchDisplayController搜索时总是报cell错
- LeetCode - Maximum Product Subarray
- KMP Python
- 99. Interleaving String Leetcode Python