Home  >  Article  >  Web Front-end  >  当鼠标移动到DIV上边时显示滚动条_html/css_WEB-ITnose

当鼠标移动到DIV上边时显示滚动条_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:47:351403browse

我看到一个滚动条,是当鼠标移动到div上边时才显示,这个该怎么样实现呢?

能写下代码吗?


回复讨论(解决方案)

是垂直的滚动条

最好是有图示

试试如下:


<script> <br /> function scroll(){ <br /> document.getElementById("panel").style.overflowY="scroll"; <br /> } <br /> </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn