A
A
Alexander Knyazev2016-04-07 16:40:39
css
Alexander Knyazev, 2016-04-07 16:40:39

Responsive menu in Metro UI CSS crashes after page refresh. What is the problem?

I'm making an appbar using the Metro ui framework.
I add a standard menu to the site, the code is taken from the documentation.
The code:

<div class="app-bar" data-role="appbar">
    <a class="app-bar-element" href="...">Home</a>
    <span class="app-bar-divider"></span>
    <ul class="app-bar-menu">
        <li><a href="">Home</a></li>
        <li><a href="">Support</a></li>
        <li><a href="">Help</a></li>
        <li><a href="">Home</a></li>
        <li><a href="">Support</a></li>
        <li><a href="">Help</a></li>
    </ul>
</div>

01f4d8f2abae49cbb6fe22434f166092.png
When the browser size is reduced, parts of the menu are hidden, it becomes possible to turn around.
ced84bd977e8447893fc97b4bce0cb2b.png
However, when the page is refreshed, all blocks are visible
50bd4a2df65f4379871638c5df409179.png
. Once again, updated, they are visible again. However, if you start resizing the browser immediately again, everything falls into place
34469662e0db477a90e35b4f5fa0a0c8.png
. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Knyazev, 2016-04-07
@alexandrknyazev13071995

It turned out that everything was to blame - the use of less in the project, you threw it - it worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question