没有滚动条的CSS / HTML滚动文本

时间:2011-09-22 13:28:57

标签: html css scroll

所有!

我需要在图片上制作效果。我可以制作文本着色(文本顶部和底部的透明贴图),但我不知道如何制作没有滚动条和剪辑的可滚动文本(溢出:隐藏)。有想法吗? enter image description here

我只有一个想法 - 在滚动条上添加图片以隐藏用户

1 个答案:

答案 0 :(得分:6)

试试这个:

<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>