Css之设置光标颜色

示例:

input {
  border: none;
  background-color: transparent;

  caret-color: #fff; // 设置光标颜色
}

.input-select {
  width: 7.2rem;

  caret-color: #fff; // 设置光标颜色

  :deep(.ant-select-selection-search-input) {
    color: #fff;
  }
}

猜你喜欢

转载自blog.csdn.net/weixin_45346457/article/details/125060313