/* 设置鼠标悬停在元素上时的光标样式 */
/* 默认箭头 */
.default-cursor {
cursor: default;
}
/* 手型(通常用于可点击的链接或按钮) */
.pointer-cursor {
cursor: pointer;
}
/* 文本选择光标(通常用于文本输入框) */
.text-cursor {
cursor: text;
}
/* 等待光标(通常用于加载中) */
.waiting-cursor {
cursor: wait;
}
/* 不允许光标(通常用于不可用的元素) */
.not-allowed-cursor {
cursor: not-allowed;
}
/* 自定义光标(使用图片作为光标) */
.custom-cursor {
cursor: url('path/to/custom-cursor.png'), auto;
}
cursor 属性用于定义当鼠标指针位于某个元素之上时所显示的光标样式。auto 光标。上一篇:css 动画
下一篇:css渐变背景色
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站