IE 和 Edge 中的文本区域边框

Textarea border in IE and Edge

我有一个 textarea 样式,在 chrome 中它看起来很好,四周都是平坦的均匀边框,但是在 edge 和 IE 中,它的左侧和上侧有一个较暗的边框(如下图)。我假设这是某种阴影,如何将其删除?

我用于文本框的 CSS 是...

.textarea-rounded {
    font-family: 'Inconsolata', monospace;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #ecf0f1;;
    border-radius: 25px;
    height: 200px;
    width: 90%;
    font-size: 18pt;
    color: #95a5a6;
    transition: all 0.8s ease-in-out;
    -webkit-transition: all 0.8s ease-in-out;
    -moz-transition: all 0.8s ease-in-out;
    box-shadow: 0 0 5px rgba(81, 203, 238, 0);
    -webkit-box-shadow: 0 0 5px rgba(81, 203, 238, 0);
    -moz-box-shadow: 0 0 5px rgba(81, 203, 238, 0);
}

这是由于 Edge 默认 border-color。您可以为此显式设置 border-color 以制作相同的跨浏览器边框颜色。

.textarea-rounded {
  font-family: 'Inconsolata', monospace;
  overflow: hidden;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #ecf0f1;
  border-radius: 25px;
  height: 200px;
  width: 90%;
  font-size: 18pt;
  color: #95a5a6;
  transition: all 0.8s ease-in-out;
  -webkit-transition: all 0.8s ease-in-out;
  -moz-transition: all 0.8s ease-in-out;
  box-shadow: 0 0 5px rgba(81, 203, 238, 0);
  -webkit-box-shadow: 0 0 5px rgba(81, 203, 238, 0);
  -moz-box-shadow: 0 0 5px rgba(81, 203, 238, 0);
  border-color: #808080; /* new */
}
<textarea class="textarea-rounded"></textarea>