当前位置:Gxlcms > html代码 > input的placeholder样式设置

input的placeholder样式设置

时间:2021-07-01 10:21:17 帮助过:43人阅读

这次给大家带来input的placeholder样式设置,input的placeholder样式设置注意事项有哪些,下面就是实战案例,一起来看一下。

1.png

/滚动条整体部分,必须要设置/

  1. ::-webkit-scrollbar {width: 10px;height: 10px;border-radius: 10px;}
  2. /滚动条的轨道/::-webkit-scrollbar-track {box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);}
  3. /滚动条的上下两端的按钮/::-webkit-scrollbar-button {height: 10px;border-radius: 10px;}
  4. /滚动条的滑块按钮/::-webkit-scrollbar-thumb {border-radius: 10px;background-color: #048AE9;box-shadow: inset 0 0 5px #fff;}

1.png


input placeholder设置

  1. /input placeholder样式设置/
  2. input::-webkit-input-placeholder {
  3. /* placeholder颜色 /
  4. color: #fff !important;
  5. / placeholder字体大小 */
  6. font-size: 16px;
  7. font-weight: 100;
  8. }

相信看了本文案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!

推荐阅读:

css3阴影的详解

JavaScript的数组使用集合

javaScript容易被忽略的知识点

以上就是input的placeholder样式设置的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行