wordpress - 粘性标题在移动模式下不滚动
问题描述
进入移动模式并且粘性标题不会滚动,它将保持在固定位置。
随机糟糕的尝试并将一些 CSS 拼凑在一起。
这是当前粘性标题的 CSS。(我在插件中使用它,但这是插件中的 css)
#site-logo-inner, #site-header-inner {
transition: all .3s ease-in-out;
}
#site-header #site-logo #site-logo-inner a img {
transition: all .3s ease-in-out;
}
.fixed_sticky_active #site-header #site-logo #site-logo-inner a img {
max-height: 50px!important;
}
@media(min-width: 960px){
.fixed_sticky_active #site-logo-inner {
height: 74px!important;
}
.fixed_sticky_active #site-navigation-wrap .dropdown-menu >li >a {
line-height: 74px!important;
display: inline-block!important;
}
.fixed_sticky_active #site-header {
opacity: 1;
}
}
@media(max-width: 480px){
.fixed_sticky_active #site-header {
top: 0;
}
.fixed_sticky_active #site-header-inner {
padding: 0;
}
}
我试过这个;
@media(max-width: 480px){
.fixed_sticky_active #site-header {
max-height: 100vh;
overflow: auto;
top: 0;
-webkit-overflow-scrolling: touch;
}
.fixed_sticky_active #site-header-inner {
padding: 0;
max-height: 100vh;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
}
(完全不确定我在做什么,但我在另一篇文章中将其视为修复,但没有奏效:()
解决方案
推荐阅读
- mysql - 按方向列分组和求和数量
- json - 使用 Decodable 解码嵌套的 JSON 子对象
- java - 如何从 Spring Data JPA 中的 Oracle PL/SQL 存储过程中检索作为 OUT 参数的对象数据类型
- python-3.x - 将可变长度文本行读入参数列表
- javascript - highcharts 系列类型“标志”不显示系列外的点
- java - 如何在模式生成期间修复“org.apache.velocity.exception.ResourceNotFoundException”
- twig - 如何访问 views-exposed-form.html.twig 中的表单字段(暴露的过滤器)
- javascript - 使用扩展运算符执行深层复制 - 无法复制最后一级状态
- sql - 如何选择所有非空列?
- watson-knowledge-studio - 如何以编程方式将文档上传到 IBM Knowledge Studio?