.cursor-demo span {
min-width: 100px;
padding: 5px 10px;
margin-bottom: 5px;
display: inline-block;
border: 1px solid grey;
border-radius: 3px;
background-color: aliceblue;
}
De onderstaande tabel toont de verschillende cursors die de meeste browsers accepteren. Plaats de muisaanwijzer op de "Test" link in de uitvoerkolom om die cursor weer te geven.
Look | Waarde | Eigenschap | Voorbeeld |
---|---|---|---|
![]() |
default | a:hover { cursor: default; } | Test |
![]() |
pointer | a:hover { cursor: pointer; } | Test |
![]() |
text | a:hover { cursor: text; } | Test |
![]() |
wait | a:hover { cursor: wait; } | Test |
![]() |
help | a:hover { cursor: help; } | Test |
![]() |
progress | a:hover { cursor: progress; } | Test |
![]() |
crosshair | a:hover { cursor: crosshair; } | Test |
![]() |
move | a:hover { cursor: move; } | Test |
![]() |
url() | a:hover { cursor: url( "custom.cur" ), default; } | Test |
In het bovenstaande voorbeeld is custom.gif en custom.cur het aangepaste cursorbestand, dat we hebben geĆ¼pload naar de server, als de aangepaste cursor ontbreekt of niet wordt ondersteund door de browser dan zal de standaard (default) cursor worden weergegeven.
![]() |
Als je een aangepaste cursor wilt gebruiken, moet je niet vergeten om aan het einde van de lijst een standaard (default) cursor op te geven, anders wordt de aangepaste cursor niet correct weergegeven. |
Hier is een live demonstratie van een aangepaste cursor:
![]() |
Het standaard formaat dat gebruikt kan worden voor cursors is het .cur formaat. Je kunt echter afbeeldingen zoals .jpg en .gif makkelijk converteren naar het .cur formaat. |
![]() |
Ad blocker gedetecteerd! |
Ons website heeft gedetecteerd dat u een Ad blocker gebruikt. Codecenter.nl is gratis, wij blijven overeind door het weergeven van advertenties en u kunt ons daarbij helpen. Het wordt aanbevolen om uw Ad blocker uit te schakelen zodat u verder gebruik kunt maken van codecenter.nl, alvast bedankt. |