CSS Style parent based on child selector

This question already has an answer here:

  • Is there a CSS parent selector? 26 answers

  • 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.

    链接地址: http://www.djcxy.com/p/22836.html

    上一篇: css选择器来选择一个包含img的表格单元格

    下一篇: 基于子选择器的CSS样式父项