1 input 标签去除外边框:

在进行webAPP开发时,input外边框非常影响美观,去除外边框方法如下:

<input style="border: 0px;outline:none;cursor: pointer;"  type="text" placeholder="请输入手机号">

解释:

border: 0px;

去除 placeholder 外的边框

outline:none;”

“去除点击input框时显示的边框

cursor: pointer;”

点击显示光标光标呈现为指示链接的指针(一只手)

2 placeholder的字体颜色:

  查阅不同资料后发现,因为各家浏览器对css支持各有不同,所以需要对齐区别设置:

  在样式表添加:

input::-webkit-input-placeholder {
/* WebKit browsers */
color: #999;
} input::-moz-placeholder {
/* Mozilla Firefox 4 to 18 */
color: #999;
} input::-moz-placeholder {
/* Mozilla Firefox 19+ */ color: #999;
} input::-ms-input-placeholder {
/* Internet Explorer 10+ */
color: #999;
}

效果:

												

最新文章

  1. 安卓Android科大讯飞语音识别代码使用详解
  2. 面试题目——《CC150》排序与查找
  3. C++基本语法
  4. gulp编译sass
  5. UnWind Segue
  6. cp: omitting directory”错误
  7. 【BZOJ-1449&amp;2895】球队收益&amp;球队预算 最小费用最大流
  8. php保存base64数据
  9. SQLite的简单应用
  10. Linux学习2
  11. 浅析SSH核心原理(二)
  12. oracle_根据ID(字符型)建立分区表
  13. pyqt样式表语法笔记(下)--原创
  14. 链接学习之obj文件探索
  15. Elasticsearch5.4署遇到的问题
  16. LiteQuery MAX(Integer)、MAX(String) 判断是否返回值
  17. CS229 6.13 Neurons Networks Implements of stack autoencoder
  18. JAVA 第一周学习总结
  19. Kubernetes学习之路(二十一)之网络模型和网络策略
  20. js调试系列: 调试基础与技巧

热门文章

  1. QtAV的编译方法
  2. 笔记:使用 Protel 99 SE 改一块车充 PCB
  3. Java Integer和String内存存储
  4. shell中把大写字母转换成小写字母
  5. 安装ruby-pg报错解决
  6. PHP面向对象深入研究之【继承】,减少代码重复
  7. U-boot分析与移植(2)----U-boot stage1分析
  8. cocos2d-x v3.3开发环境配置
  9. NetBeans配置Xdebug 远程调试PHP
  10. 1.4 Application应用