The reason you're seeing this issue is because you have improperly nested tags in the <header>
section. Your code is as follows:
<a href="#"><h1 class="title">Document</a><a href="#!/about-us" id="show-about-btn">▼</a></h1>
<!--open a open h1 close a|open a close a|close h1-->
or, in a condensed version:
<a><h1></a><a></a></h1>
You can fix this by switching the first <a>
and the <h1>
:
<h1 class="title">
<a href="#">Document</a>
<a href="#!/about-us" id="show-about-btn">▼</a>
</h1>
Everything is now properly nested, and the bracket highlighting will work as expected:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.