CSS / HTML滚动文本,不含滚动条 [英] CSS/HTML scrolling text without scrollbars

查看:141
本文介绍了CSS / HTML滚动文本,不含滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部!

我需要使用图片上的效果。我可以使文本阴影(透明的行为在文本的顶部和底部),但我不知道如何使滚动文本没有滚动条和剪切(溢出:隐藏)。有eny想法?

I need to make effects with like on the picture. I can make text shading (transparent imgage on top and bottom of a text) but I have no idea how to make scrollable text without scrollbars and clipping (overflow: hidden). Have eny idea?

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

I have only one idea - add image over scrollbar to hide it from users

推荐答案

尝试:

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

这篇关于CSS / HTML滚动文本,不含滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆