修改 navbar 的居中实现,防止闪跳

This commit is contained in:
Skywt2003 2021-12-08 17:02:52 +08:00
parent 8814c3dedf
commit 711ef807e5
3 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,12 @@
backdrop-filter: blur(20px);
padding: 0;
}
/* 使导航栏视觉上居中 */
.navbar ul.navbar-nav li:last-child{
margin-right: 0;
}
/* 底部网安备案图标调整 */
#nis:before {
content:url(beian.png);

View File

@ -153,7 +153,6 @@
</ul>
</div>
</nav>
<script>$(document).ready(function(){$(".navbar ul.navbar-nav li:last-child").addClass("mr-0");});</script>
<div id="body">
<div class="container">

View File

@ -146,7 +146,6 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自
</div>
</nav>
</div>
<script>$(document).ready(function(){$(".navbar ul.navbar-nav li:last-child").addClass("mr-0");});</script>
<footer class="mt-5 mb-5" id="footer" role="footer">
<div class="container">