欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

textarea鼠标聚焦边框颜色 textarea 获得焦点时的颜色 有大用 有大大用

  1. .textarea {
  2. height: 78%;
  3. width: 99%;
  4. resize: none;
  5. border: 1px solid rgb(193, 222, 250);
  6. border-radius: 4px;
  7. padding: 5px;
  8. outline-color: rgba(83, 160, 231, 0.61); // 鼠标聚焦边框颜色

然后就能看到效果啦

 


下面是我自己的方法

#fy_div td textarea{
width: 100%;
resize:none;
color:#999;
margin-top: 5px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 5px;

border: 1px solid rgb(102, 102, 102);
/* outline-color: rgba(83, 160, 231, 0.61);*/  /*鼠标聚焦边框颜色*/
   box-shadow: none;
}
#fy_div td textarea:hover{
border: 1px solid   rgb(83, 160, 231);
/*border-color: rgba(83, 160, 231, 0.61);*/
   -webkit-box-shadow: none;
box-shadow: none;
}
#fy_div td textarea:focus{
border:none;
outline: 1px solid   rgb(83, 160, 231);
/*border-color: rgba(83, 160, 231, 0.61);*/
   -webkit-box-shadow: none;
box-shadow: none;
}

来自  https://blog.csdn.net/qq_32963841/article/details/109773920


普通分类: