什么是>
符号意味着CSS?我在我的Wordpress博客主题中注意到它,并想知道它在做什么。
#access li:hover > a,
#access ul ul :hover > a,
#access a:focus {
background: #efefef;
}
#access li:hover > a,
#access a:focus {
background: #f9f9f9; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#f9f9f9, #e5e5e5);
background: -o-linear-gradient(#f9f9f9, #e5e5e5);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5)); /* Older webkit syntax */
background: -webkit-linear-gradient(#f9f9f9, #e5e5e5);
color: #373737;
}
#access ul li:hover > ul {
display: block;
}
我认为如果您在'id = a'' div'下添加'id = d'的另一个'div',*视觉*显示所有'child'元素将被选中,您的答案会更有帮助。 :) – 2016-10-03 23:17:22