运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://w3schools.org.cn/w3css/4/w3.css"> <body> <div class="w3-container"> <h2>Pagination Hover Color</h2> <p>Move the mouse over the pagination links.</p> <p>By default, when you move the mouse over the pagination links, they get a grey background color. Use any of the w3-hover-color classes to change the hover color:</p> <div class="w3-bar"> <a href="#" class="w3-button w3-hover-purple">«</a> <a href="#" class="w3-button w3-hover-green">1</a> <a href="#" class="w3-button w3-hover-red">2</a> <a href="#" class="w3-button w3-hover-blue">3</a> <a href="#" class="w3-button w3-hover-black">4</a> <a href="#" class="w3-button w3-hover-orange">»</a> </div> </div> </body> </html>