保持y滚动条固定在列的右侧

我有一行具有这样的列布局:2-8-2。在前2列div(class = side)中,我有一个带有y滚动条的Ul(class = scroller)。我遇到的问题是将滚动条保持在其父div(.side)的右侧。如果我未指定宽度,则它不会对齐。如果将其设置为像素,则当列的大小更改时,该条会停留在原处,通常会在div之外出现。无论当前宽度是多少,我都希望将其固定在其父div的右侧。

第2列的div CSS是:

.side {
    background-color: #27324d;
    height: 600px;   
}

UL css

.scroller{
  height: 540px;
  width: 293px;(roughly all the wat too the right on my 23" monitor,goes out of whack on smaller monitors)
  overflow: hidden;
  overflow-y: scroll;

}

simmering 回答:保持y滚动条固定在列的右侧

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3161660.html

大家都在问