div+css实现简约分页效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现简约分页效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap'); *{ margin: 0; padding: 0; box-sizing: border-box; list-style: none; font-family: 'Josefin Sans', sans-serif; } body{ background: #2a49a0; } .wrapper{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 500px; height: 60px; background: #2c63ff; padding: 0px 70px; border-radius: 5px; box-shadow: 0 0 5px rgba(0,0,0,0.125); } .wrapper ul{ display: flex; text-align: center; } .wrapper ul li{ width: 50px; font-size: 18px; height: 60px; line-height: 60px; color: #fff; cursor: pointer; } .wrapper ul li:hover, .wrapper ul li.active{ background: #1944bd; } .wrapper .prev, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0