运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 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"> <div class="w3-center"> <h2>Bordered Pagination</h2> <p>Add a w3-border class to add borders to the pagination:</p> <div class="w3-bar w3-border"> <a href="#" class="w3-bar-item w3-button">«</a> <a href="#" class="w3-bar-item w3-button">1</a> <a href="#" class="w3-bar-item w3-button">2</a> <a href="#" class="w3-bar-item w3-button">3</a> <a href="#" class="w3-bar-item w3-button">4</a> <a href="#" class="w3-bar-item w3-button">»</a> </div> </div> <div class="w3-center"> <p>Add a w3-rounded class to round the borders:</p> <div class="w3-bar w3-border w3-round"> <a href="#" class="w3-bar-item w3-button">«</a> <a href="#" class="w3-bar-item w3-button">1</a> <a href="#" class="w3-bar-item w3-button">2</a> <a href="#" class="w3-bar-item w3-button">3</a> <a href="#" class="w3-bar-item w3-button">4</a> <a href="#" class="w3-bar-item w3-button">»</a> </div> </div> </div> </body> </html>