【发布时间】:2016-06-03 19:51:14
【问题描述】:
我正在尝试使用 element+element-Selector 更改按钮后元素的 CSS。
以下 sn-p 适用于 Chrome、Edge、Firefox - 不适用于 MacOS 的 Safari:
.button:focus+.change{
color: red;
}
<p>When you focus the button, the text color should change to red.</p>
<button class="button">click me</button>
<div class="change">Change color</div>
任何想法,我该如何解决这个问题?
感谢您的帮助。
【问题讨论】:
标签: css safari css-selectors focus