0

This is my code:

<ul>
    <li>
        <ul>
            ... (There can be many other nested elements ul li)
            <li>a</li>
            <li>b</li>
            ...
        </ul>
    </li>
</ul>

How to using CSS to select last level hierarchy elements li (the result is that the li elements contain a and b) without knowing level hierarchy

CSS is possible if available: ul * li:last-hierarchy

Result the selected elements should be:

<li>a</li>
<li>b</li>
TRI ÂN
  • 59
  • 7

0 Answers0