CSS代码: input { color: #333; caret-color: red; } @supports (-webkit-mask: none) and (not (caret-color: red)) { input { color: red; } input::first-line { color: #333; } } HTML代码: <input value="混合兼容处理">
CSS代码: input { color: #333; caret-color: red; } @supports (-webkit-mask: none) and (not (caret-color: red)) { input { color: red; } input::first-line { color: #333; } } HTML代码: <input value="混合兼容处理">