我可以在浏览器的表单/文本区域中更改闪烁的插入符号吗? [英] Can I change the blinking caret in a form/text area in a browser?

查看:133
本文介绍了我可以在浏览器的表单/文本区域中更改闪烁的插入符号吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网页的文字栏位中加入自订文字插入符号。我想有一个旧学校块类型闪烁插入符号。这是可能的吗?

I want to have a custom text caret in my text field for my web page. I would like to have an old school block type blinking caret. Is this possible?

推荐答案

简单的答案是你不能通过javascript,html或者改变用户的闪烁插入css as that is created and managed by the chrome(the browser beyond the DOM)

The simple answer is you can't (change the user's blinking caret) via javascript, html, or css as that is created and managed by the chrome (the browser beyond the DOM)

想要伪造吗?
http://www.dynamicdrive.com/forums/showthread.php ?t = 17450

显示的代码示例非常旧,但是想法保持不变 - 创建一个闪烁的框并让它拖曳输入。 ..

The code examples shown are pretty old, but the idea remains the same-- Make a blinking box and have it tail the input...

有了这一切,我强烈建议不要使用它在任何东西,但最小的,利基,有趣的方式,因为有一个javascript函数火,并改变每个keyDown上的DOM都与用户滥用imho有关。

With thats all said, I highly suggest against using it in anything but the smallest, niche, 'for fun' way as having a javascript function fire and be altering the DOM on every keyDown is bordering on user abuse imho.

这篇关于我可以在浏览器的表单/文本区域中更改闪烁的插入符号吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆