<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <style type="text/css"> header { width: 100%; overflow: hidden; white-space: nowrap; overflow-x: scroll; position: fixed; top: 0; left: 0; background-color: blue; } header::-webkit-scrollbar { display: none; } .nav { display: inline-block; margin-left: 15px; margin-right: 10px; height: 50px; line-height: 50px; text-decoration: none; color: #fff; } .con{ width: 100%; height: 100px; padding-top: 50px; } .active{ color: red; } </style> <script src=
头部tab栏点击滚动居中
最新推荐文章于 2023-05-16 22:08:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)