1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/lhammer-You-need-to-know-css

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
mouse-cursor.md 6.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Отправлено 10.03.2025 04:31 b50c8d4

Выбор подходящего курсора мыши

?> Общие сведения: :point_right: курсор

<script v-pre type="text/x-template" id="mouse-cursor">
<style>
main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
main > span {
    width: 100px; height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px;
    border-radius: 50%;
    font-weight: 600;
    transform: translate3d(0, 0, 0);
    transition: all .3s ease-in-out;
    background: #eee url("data:image/svg+xml,\ 
            <svg xmlns='http://www.w3.org/2000/svg' width='90' height='9'>\ 
                <rect width='90' height='8' fill='#f2f2f2'/>\ 
                <rect width='90' height='2' fill='#e7e7e7'/>\ 
                <rect y='2' width='90' height='3' fill='#ececec'/>\ 
            </svg>");
    background-size: 12px 12px;
}
main > span:hover {
    transform: translate3d(-1px, -1px, 0) scale(1.05);
    box-shadow: -2px -2px 6px 2px rgba(108, 108, 108, 0.1) inset,
                 0 0 0 5px rgba(255, 255, 255, .6) inset,
                 0 0 0 1px rgba(139, 139, 139, 0.1),
                 2px 2px 10px rgba(0,0,0,.2);
}
main > span:nth-of-type(1) { cursor: default; }
main > span:nth-of-type(2) { cursor: crosshair; }
main > span:nth-of-type(3) { cursor: help; }
main > span:nth-of-type(4) { cursor: move; }
main > span:nth-of-type(5) { cursor: pointer; }
main > span:nth-of-type(6) { cursor: progress; }
main > span:nth-of-type(7) { cursor: text; }
main > span:nth-of-type(8) { cursor: wait; }
main > span:nth-of-type(9) { cursor: e-resize; }
main > span:nth-of-type(10) { cursor: ne-resize; }
main > span:nth-of-type(11) { cursor: nw-resize; }
main > span:nth-of-type(12) { cursor: n-resize; }
main > span:nth-of-type(13) { cursor: se-resize; }
main > span:nth-of-type(14) { cursor: sw-resize; }
main > span:nth-of-type(15) { cursor: s-resize; }
main > span:nth-of-type(16) { cursor: w-resize; }
main > span:nth-of-type(17) { cursor: context-menu; }
main > span:nth-of-type(18) { cursor: none;
    background: #eee url('data:image/svg+xml,\ 
            <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" fill-opacity=".15">\
                <rect x="30" width="30" height="30"/>\

Пожалуйста, предоставьте текст для перевода, чтобы я мог его исправить согласно указанным правилам.markdown

<style> main > span:nth-of-type(19) { cursor: cell; } main > span:nth-of-type(20) { cursor: vertical-text; } main > span:nth-of-type(21) { cursor: alias; } main > span:nth-of-type(22) { cursor: copy; } main > span:nth-of-type(23) { cursor: no-drop; } main > span:nth-of-type(24) { cursor: not-allowed; } main > span:nth-of-type(25) { cursor: ew-resize; } main > span:nth-of-type(26) { cursor: ns-resize; } main > span:nth-of-type(27) { cursor: nesw-resize; } main > span:nth-of-type(28) { cursor: nwse-resize; } main > span:nth-of-type(29) { cursor: col-resize; } main > span:nth-of-type(30) { cursor: row-resize; } main > span:nth-of-type(31) { cursor: all-scroll; } main > span:nth-of-type(32) { cursor: zoom-in; } main > span:nth-of-type(33) { cursor: zoom-out; } main > span:nth-of-type(34) { cursor: -webkit-grab; } main > span:nth-of-type(35) { cursor: -webkit-grabbing; } </style> по умолчанию 十字光标 помощь перемещение указатель процесс текст ожидание правый горизонтальный зум верхний левый угольный зум нижний левый угольный зум верхний вертикальный зум нижний правый угольный зум нижний левый угольный зум левый горизонтальный зум контекстное меню нет ячейка вертикальный текст альтернатива копировать не может быть помещено не разрешено горизонтальное масштабирование вертикальное масштабирование диагональное масштабирование (слева сверху направо) диагональное масштабирование (слева снизу направо) масштабирование столбца масштабирование строки скроллинг во всех направлениях увеличение уменьшение хватать хватает <script> </script> ```Примечание: В некоторых случаях были использованы названия курсора на других языках, так как некоторые значения являются международными стандартами и могут быть лучше поняты в оригинальной форме. Например, "十字光标" (十字 = крест, 光标 = указатель) для "crosshair".

Создание хорошего пользовательского опыта должно стать привычкой

Поддержка браузеров

<iframe src="https://caniuse.bitsofco.de/embed/index.html?feat=css3-cursors&periods=future_2,future_1,current,past_1,past_2,past_3&accessible-colours=false" frameborder="0" width="100%" height="493px"></iframe> <iframe src="https://caniuse.bitsofco.de/embed/index.html?feat=css3-cursors-newer&periods=future_2,future_1,current,past_1,past_2,past_3&accessible-colours=false" frameborder="0" width="100%" height="471px"></iframe>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/lhammer-You-need-to-know-css.git
git@api.gitlife.ru:oschina-mirror/lhammer-You-need-to-know-css.git
oschina-mirror
lhammer-You-need-to-know-css
lhammer-You-need-to-know-css
master