大家好!
我需要像图片上一样制作特效。我可以使用文字阴影(在文字上方和下方添加透明图像),但我不知道如何制作没有滚动条和剪切(overflow:hidden)的可滚动文本。有什么思路吗?
我只有一个想法-在滚动条上添加图像,以使其对用户隐藏。
大家好!
我需要像图片上一样制作特效。我可以使用文字阴影(在文字上方和下方添加透明图像),但我不知道如何制作没有滚动条和剪切(overflow:hidden)的可滚动文本。有什么思路吗?
我只有一个想法-在滚动条上添加图像,以使其对用户隐藏。
试一下这个:
<div id="container" style="width: 183px; height: 183px; overflow:
hidden; border: solid black 1px">
<div id="floating-div" style="width: 200px; height:200px; overflow:
auto">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>