gpt4 book ai didi

html - CSS 选择 child

转载 作者:行者123 更新时间:2023-11-28 13:25:42 25 4
gpt4 key购买 nike

如何将下面的这些更改也提供给 .content-1 内的 div 标签?对不起,如果我的问题含糊不清,但我相信它真的很简单。

我有这个 CSS:

.tabs input.tab-selector-1:checked ~ .content .content-1,
.tabs input.tab-selector-2:checked ~ .content .content-2,
.tabs input.tab-selector-3:checked ~ .content .content-3,
.tabs input.tab-selector-4:checked ~ .content .content-4 {
z-index: 100;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;

-webkit-transition: opacity ease-out 0.2s 0.1s;
-moz-transition: opacity ease-out 0.2s 0.1s;
-o-transition: opacity ease-out 0.2s 0.1s;
-ms-transition: opacity ease-out 0.2s 0.1s;
transition: opacity ease-out 0.2s 0.1s;
}

最佳答案

试试这个

.tabs input.tab-selector-1:checked ~ .content .content-1,
.tabs input.tab-selector-1:checked ~ .content .content-1 div {
...
}

关于html - CSS 选择 child ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13900978/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com