我正在使用 angularjs Material 设计,但我卡在了某一点上,即 md-scroll
上下不工作。但是,对于左侧和右侧,它工作正常。选项卡有一个表格 View ,其中向上和向下滚动应该可以工作,但它们没有响应。每当我向上或向下滚动它时,它是否会向左移动。
这是我用来左右滚动的 CSS。
md-tabs-content-wrapper, [md-swipe-left], [md-swipe-right] {
touch-action: none;
touch-action: pan-y;
}
最佳答案
也许您为错误的标签设置了样式?
例如,我看到 touch-action: none
<md-tab-content>
上的样式在我的元素上标记。如果我只是设置 touch-action: auto !important;
有用。没有 !important
是行不通的因为样式是通过style
设置的属性。
关于javascript - Angular Material 选项卡滚动内容不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43497548/