gpt4 book ai didi

java - 如何:not for two attributes in CSS calendar picking

转载 作者:行者123 更新时间:2023-11-28 03:00:44 24 4
gpt4 key购买 nike

如果我有这样的表:

<td class="search-unit-custom-control-calendar-day search-unit-custom-control-calendar-day--not-this-month">
<time class="search-unit-custom-control-calendar-day__number">--</time>
</td>

<td class="search-unit-custom-control-calendar-day search-unit-custom-control-calendar-day--unavailable">
<time class="search-unit-custom-control-calendar-day__number">--</time>
</td>

<td class="search-unit-custom-control-calendar-day search-unit-custom-control-calendar-day">
<time class="search-unit-custom-control-calendar-day__number">--</time>
</td>

<td class="search-unit-custom-control-calendar-day search-unit-custom-control-calendar-day">
<time class="search-unit-custom-control-calendar-day__number">--</time>
</td>

<td class="search-unit-custom-control-calendar-day search-unit-custom-control-calendar-day">
<time class="search-unit-custom-control-calendar-day__number">--</time>
</td>

如何选择可用日期,例如:

`tbody.search-unit-custom-control-calendar__table__page tr td[class*=calendar-day-]:not([class*='unavailable'] && [class*='--not-this-month']))`

当我使用它时它不起作用,有人可以帮忙吗?

最佳答案

我相信您只需要添加第二个 :not 条件,而不是将它们与 && 连接起来。

像这样:

tbody.search-unit-custom-control-calendar__table__page tr td[class*=calendar-day]:not([class*='unavailable']):not([class*='--not-this-month'])

查看此 fiddle

关于java - 如何:not for two attributes in CSS calendar picking,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46220222/

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