当我将鼠标悬停在表格中的文本上时,如何停止将光标更改为I栏? [英] How can I stop my cursor changing to an I bar when I hover over text in a table?
问题描述
我有一个HTML表格,然后双击这些行。该表只读,除了< input>
字段外。
当我将鼠标悬停在不是< input>的文字上时,如何使光标不会更改为I bar?
字段?
我收到了一些答案,但他们只是指向链接。有人可以给我一个小提琴示例吗?
可以使用一个名为的游标的CSS属性 / code>来指定当您滚动文本时光标会变成什么。您可以在此处查看一些示例。
这是表格示例中的默认光标。 FIDDLE 。
I have an HTML table and I put a double click on the rows. The table is read only except for some <input>
fields.
How can I make it so that the cursor does not change to an I bar when I hover over the text that's not an <input>
field?
I received some answers but they just point to links. Can someone give me an example in a fiddle ?
解决方案 You can use a CSS property called cursor
to specify what your cursor will turn into when you scroll over the text. You can see some of the examples here.
And here is a default cursor on a table example. FIDDLE.
这篇关于当我将鼠标悬停在表格中的文本上时,如何停止将光标更改为I栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!