我正在为移动访问者使用https://github.com/jasny/jquery.smartbanner/。不幸的是,它将横幅放置在我的网站标题的顶部,使徽标,搜索和菜单按钮看不见。
有没有办法让SmartBanner向下推送我网站的其余部分?
我的html是:
<body>
<div id="page" class="site" data-role="page">
<!-- header -->
<header id="masthead" class="site-header" data-role="header" data-position="fixed">
<div id="view-search" class="view-search ">
<a href="#"><i class="icon-search"></i></a>
</div>我正在使用WordPress插件的WPSmart - http://wordpress.org/plugins/wpsmart-mobile/。
发布于 2018-01-03 19:00:28
在你的脑海中使用
<meta name="smartbanner:disable-positioning" content="true">在您可以在自己的css中将.smartbanner更改为您想要的位置之后
发布于 2014-10-17 06:38:40
这就是我使用的,目前它对我来说工作得很好。当smartbanner显示时( js库中的第131行),添加:
$('html').css('position', 'relative');然后,我们需要做的就是放置智能横幅。转到136 + 140行,并将"top :0“更改为:
top:'-'+ this.origHtmlMargin (this.bannerHeight*this.scale)https://stackoverflow.com/questions/22918744
复制相似问题