Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何仅使用CSS更改悬停子对象的不透明度规则?_Css - Fatal编程技术网

如何仅使用CSS更改悬停子对象的不透明度规则?

如何仅使用CSS更改悬停子对象的不透明度规则?,css,Css,在仅使用核心CSS悬停在父级上时,如何更改子级lis的不透明度 下面的代码正在更改悬停在子li上时的不透明度,但我需要在悬停在父li上时执行此操作 ulli>ulli{ 背景:卡其色; 不透明度:0; } ul li>ul li:悬停{ 不透明度:1; } 应用程序1 应用程序 应用程序2 应用程序2 应用程序2 应用程序2 应用程序1 应用程序1 应用程序 应用程序2 应用程序2 应用程序2 应用程序2 将:hover移动到子菜单的父菜单(li:hover>ul): ulli

在仅使用核心CSS悬停在父级上时,如何更改子级
li
s的不透明度

下面的代码正在更改悬停在子li上时的不透明度,但我需要在悬停在父li上时执行此操作

ulli>ulli{
背景:卡其色;
不透明度:0;
}
ul li>ul li:悬停{
不透明度:1;
}
  • 应用程序1
  • 应用程序
    • 应用程序2
    • 应用程序2
    • 应用程序2
    • 应用程序2
  • 应用程序1
  • 应用程序1
  • 应用程序
    • 应用程序2
    • 应用程序2
    • 应用程序2
    • 应用程序2

:hover
移动到子菜单的父菜单(
li:hover>ul
):

ulli>ulli{
背景:卡其色;
不透明度:0;
}
ul li:悬停>ul li{
不透明度:1;
}
  • 应用程序1
  • 应用程序
    • 应用程序2
    • 应用程序2
    • 应用程序2
    • 应用程序2
  • 应用程序1
  • 应用程序1
  • 应用程序
    • 应用程序2
    • 应用程序2
    • 应用程序2
    • 应用程序2

:hover
移动到子菜单的父菜单(
li:hover>ul
):

ulli>ulli{
背景:卡其色;
不透明度:0;
}
ul li:悬停>ul li{
不透明度:1;
}
  • 应用程序1
  • 应用程序
    • 应用程序2
    • 应用程序2
    • 应用程序2
    • 应用程序2
  • 应用程序1
  • 应用程序1
  • 应用程序
    • 应用程序2
    • 应用程序2
    • 应用程序2
    • 应用程序2