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

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

WBOY
Release: 2016-06-21 09:47:35
Original
1452 people have browsed it

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

能写下代码吗?


回复讨论(解决方案)

是垂直的滚动条

最好是有图示

试试如下:


<script> <br /> function scroll(){ <br /> document.getElementById("panel").style.overflowY="scroll"; <br /> } <br /> </script>
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template