HTML - 不在链接上显示手形光标? (可可、WebView、WebKit)
需要可可、雪豹、老虎兼容性。
我有一个包含一些 HTML 的 WebView。 HTML 包含链接,主要用作 Cocoa 的 UI 替代品。
问题:当鼠标移到链接上时,如何防止出现“手”光标?出于对这个特定用户界面的美观原因,我需要它始终保持箭头光标的状态。
谢谢
Cocoa, Snow Leopard, Tiger compatibility needed.
I have a WebView containing some HTML. The HTML contains links, and is used mostly as a UI replacement for Cocoa.
Question: how do I prevent the 'hand' cursor from appearing when the mouse is moved over a link? For aesthetic reasons with this particular UI, I need it to stay as the arrow cursor at all times.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 Cocoa WebView、WebKit - 防止I-Beam 光标不再显示在文本上?
他们似乎有类似的问题,这就是您要问的问题吗?
编辑:哈哈,抱歉,我没意识到那是你!也许您可以将该方法用于 #a:hover ?
查看 http://trac.webkit。 org/export/37902/trunk/WebCore/manual-tests/cursor.html 它有很多不同的 webkit 光标。源代码也应该有帮助
并且据我所知
cursor:default
应该制作箭头(通过阅读源代码)Take a look at Cocoa WebView, WebKit - Prevent I-Beam cursor from showing over text?
They seemed to have a similar question, is that what you're asking?
EDIT: Haha sorry, I didn't realize that was you! Perhaps you could use that method for #a:hover ?
Take a look at http://trac.webkit.org/export/37902/trunk/WebCore/manual-tests/cursor.html it has a lot of different webkit cursors. The source code should be helpful as well
And from what I can tell
cursor:default
should make the arrow (from reading the source code)