作者:幽雅闲居xl | 来源:互联网 | 2023-05-18 20:09
ForvariousreasonsIwanttographicallyblur(i.e.notfocusblur)thetextinsideaninputoftyp
For various reasons I want to graphically blur (i.e. not focus/blur) the text inside an input of type=text
, not the whole element.
由于各种原因,我想以图形方式模糊(即不聚焦/模糊)text = text的输入内的文本,而不是整个元素。
Is there a way to do this?
有没有办法做到这一点?
I currently have this:
我目前有这个:
The last class style definition is to replace the border of the input with of class validation
.
最后一个类样式定义是用类验证替换输入的边框。
But this is far from perfect:
但这远非完美:
- The border 'perimeter' is not the same dimension
边界“周长”的尺寸不同
- If I increase the size of the outer border, I still get some blur leakage
如果我增加外边框的大小,我仍然会有一些模糊泄漏
Is there a better way of blurring the text only, and not the bounding box? Or some other way to cover up the side effects of blurring the input element
有没有更好的模糊文本的方法,而不是边界框?或者其他一些方法来掩盖模糊输入元素的副作用
3 个解决方案