我想使用自定义图像作为光标。
这很好,但从我所能看到的-原点(箭头尖端)默认是在我的图像的左上角。
如何将原点设置为图像的中心。
以下是演示该问题的演示片段
div {
width: 600px;
height: 100px;
background: pink;
cursor: url(http://placehold.it/50x30), auto
}
<div>the cat in the hat<br> the cat in the hat<br> the cat in the hat<br> the cat in th
我不知道如何解决这个问题:图像直接定位在某个文本下面,当窗口被调整大小时,图像直接位于文本的下方。我的问题是,我不能只是浮动的图像左,它需要更远,并移动一些文本。就像对图像进行居中一样,即使页面的大小调整,它也将始终停留在相对中心。
编辑:--我想问题是,我有3部分文本彼此像这样格式化,当页面被调整大小时,它们会移动:
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="example.css"/>
<p>this is the text w