开发者

CSS Cascading HTML5 <header> <nav> elements - How?

开发者 https://www.devze.com 2023-02-05 00:56 出处:网络
Example: <header> <nav> <ul>...</ul> </nav> </header开发者_如何学运维>

Example:

<header>
  <nav>
    <ul>...</ul>
  </nav>
</header开发者_如何学运维>

CSS:

header nav { ... } /* does not work */

Is there any way possible?


You might want to use an ordered list for your nav header just for a more semantic page.


If that doesn't work (which it should), try this:

header > nav { .. }

Best of luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消