开发者

Could the cursor property be dependant of float?

开发者 https://www.devze.com 2023-01-13 07:06 出处:网络
Has anybody experienced a case, when \'cursor\' property stops working when \'float\' property is added? And I mean only the \'cursor\' property.

Has anybody experienced a case, when 'cursor' property stops working when 'float' property is added? And I mean only the 'cursor' property.

(I am not adding my code, as it's a long story and it's too complex for such a small pr开发者_如何学编程oblem, so am just wondering if anybody knows if and how these properties could be dependant.)


Kind of: It could be that the float causes z-index issues, or makes the object disappear underneath another invisible object (that happens often) which invalidates the cursor property (because to the browser, the mouse is over the invisible element, not the one you defined the cursor for.)

If the element is not obscured by another element, though, and reacts properly to a :hover property for example, then the answer is no - I've never heard of any strange behaviour related to cursor and float specifically.

0

精彩评论

暂无评论...
验证码 换一张
取 消