带滚动条脚本的 SimpleModal
我正在使用 SimpleModal 脚本。我还想在其中显示一个带有长文本的特殊 DIV 标签。这个DIV需要有自己的滚动条。
示例代码:www.sildev.pl/basic/index.html 您可以从这里下载:www.sildev.pl/basic.zip
正如您所看到的,它可以独立工作,但组合在一起就会崩溃。为什么?有人可以帮我解决吗?
问候, 彼得。
编辑:
我进行了此更改,但项目仍然存在问题。这对我来说很奇怪。你能再看一下这个吗?
更新版本:www.sildev.pl/basic/index.html
邮政编码:www.sildev.pl/basic.zip
如何使此卷轴起作用?
I am using SimpleModal script. Also I want to display in it a special DIV tag with long text. This DIV need to have his own scrollbar.
Sample code: www.sildev.pl/basic/index.html
You can download this from here: www.sildev.pl/basic.zip
As You can see it's working standalone, but together it crushes. Why? Can anybody fix it to me?
Regards,
Piotr.
EDIT:
I made this changes, but still got problem with project. It is very strange for me. Can you look at this again?
Updated version: www.sildev.pl/basic/index.html
ZIP: www.sildev.pl/basic.zip
How to make this scroll works?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不会显示任何内容
这是因为如果您在 basic.js 中更改此行(第 21 行),则
:它将
起作用
更新:
更改 basic.css 文件中的第 14 行:
---from:
#basic-modal-content {display:none;}< /代码>
---到
#basic-modal-content {可见性:隐藏;}
It is because you have display none for
<div id="basic-modal-content">
if you change in basic.js this line (line 21):
to
it will work
updates:
changes line 14 in basic.css file:
---from:
#basic-modal-content {display:none;}
---to
#basic-modal-content {visibility:hidden;}