选项卡上的鼠标指针会自动显示子选项卡 [英] mouse pointer on a tab displays sub tabs automatically

查看:100
本文介绍了选项卡上的鼠标指针会自动显示子选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们将鼠标指针自动放置在选项卡上时,将显示子选项卡吗?

when we place mouse pointer on a tab automatically sub tabs will be displayed how it is possible ?

推荐答案

有几种方法可以实现. > 第一种方法是使用javascript:例如:
onmouseover ="fn1(/*显示元素*/)" onmouseout ="fn2(/*隐藏元素*/)"

第二种方法是使用CSS选择器. :例如
ul> li
{
显示:无;
}
ul:hover> li
{
display:block;
}
There are several ways to achieve that.
the first way is using javascript : for example:
onmouseover="fn1(/*show the element*/)" onmouseout="fn2(/*hide the element*/)"

the second way is using css selector. : for example
ul > li
{
display:none;
}
ul:hover > li
{
display:block;
}


这篇关于选项卡上的鼠标指针会自动显示子选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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