无法隐藏滚动条 Div 内的标签
这是我的水平滚动的 html 代码
<div><a href="javascript:void(0)" id="next_scrol1"> </a></div>
<div><a href="javascript:void(0)" id="prev_scrol1"> </a></div>
<div id="index_scrol1">
<ul><li>
<p><strong>Position:</strong> Sr PHP Developer <br />
<strong>Job Code:</strong> SRPH124 <br />
</li></ul>
<ul><li>
<p><strong>Position:</strong> Sr PHP Developer <br />
<strong>Job Code:</strong> SRPH124 <br />
</li></ul>
</div>
在这个 Div“index_scroll1”中我无法隐藏 ul。我正在使用 jquery.cycle.all.js 文件进行滚动。如果我这样放置
<ul style="display:none">
,那么它也不会隐藏并继续滚动。请完成本期所需的工作
This is my html code for horizontal scrolling
<div><a href="javascript:void(0)" id="next_scrol1"> </a></div>
<div><a href="javascript:void(0)" id="prev_scrol1"> </a></div>
<div id="index_scrol1">
<ul><li>
<p><strong>Position:</strong> Sr PHP Developer <br />
<strong>Job Code:</strong> SRPH124 <br />
</li></ul>
<ul><li>
<p><strong>Position:</strong> Sr PHP Developer <br />
<strong>Job Code:</strong> SRPH124 <br />
</li></ul>
</div>
In this Div "index_scrol1" i am not able to hide the ul. i am using jquery.cycle.all.js file for the scrolling. if i put like this
<ul style="display:none">
then also it ll not hide and keep scrolling. Please do the need ful in this issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CSS 不是必需的。
根据我对 Jquery 周期的经验,我也遇到过类似的问题,只要确保所有 html 都是可靠的,包括在末尾、之前添加 结束符 /p 就值得了。结束 /li 标签。
The CSS isn't necessary.
In my experience with the Jquery cycle, I've had similar problems, it just pays to make sure all of your html is solid, including having your closing /p at the end, before your closing /li tag.