我在网页设计/编码方面介于新手和中级之间......
开始吧!
如果你看这个:
css 表示 y 轴上的自动滚动条。 问题是,我在使其仅在文本(代码中的多个“某些文本”)显示时才显示时遇到问题,而且,它甚至没有按原样滚动...
有什么线索吗?
找到答案了!!
在 css 文件的属性中,如下所示:
div.example
{width: 960px;
height: 430px;
position: relative;
top: 90px;
left: 296px;
overflow: hidden;}
然后:
div.example
{width: 960px;
height: 430px;
position: relative;
top: 90px;
left: 296px;
overflow: scroll;}
这将导致滚动条仅在将鼠标悬停在框上时出现!
感谢 vimalnath 在该主题上提供的帮助!
最佳答案
我只是尝试将文本框的位置从绝对位置更改为相对位置
演示在这里: fiddle
关于javascript - 滚动条显示且不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10613564/