CSS Style parent based on child selector
This question already has an answer here:
The only possibility is to place the image inside the .ico
tag. Otherwise it will not work with pure CSS due to the function of CSS. It is cascading and you cannot select a specific element, which contains a specific element.
下一篇: 基于子选择器的CSS样式父项