[英]Scrolling page add extra padding on top on logo
Scrolling down the page add extra padding above the logo. 向下滚动页面,在徽标上方添加额外的填充。 I need to figure out a way to align the logo properly with rest of the site.
我需要找出一种使徽标与网站其余部分正确对齐的方法。 Here's what I have tried out so far: I have commented out this line in line in my js file.
到目前为止,这是我尝试过的内容:我在js文件中注释了这一行。
//$('.navbar-brand').css({ 'padding-top' : 0 + "px", 'padding-bottom' : 0 + "px" });
Here's the link to my site Please note: This issue is replicated only on scrolling the page up or down. 这是指向我的网站的链接,请注意:仅当向上或向下滚动页面时,才会复制此问题。
When you scrollback to top of the page. 当您滚动回到页面顶部时。 There are added
padding-bottom: 27px; padding-top: 27px;
添加了
padding-bottom: 27px; padding-top: 27px;
padding-bottom: 27px; padding-top: 27px;
in navbar-brand
anchor tag. 在
navbar-brand
锚标签中。
Remove it when scroll to top back. 滚动到顶部时将其删除。 It will solve your issue.
它将解决您的问题。
It is added from some JavaScript Or Jquery. 它是从某些JavaScript或Jquery添加的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.