문제

Hi i have this navbar :

<div data-role="navbar" data-theme="c" >
            <ul>
                <li>
                    <a href="#page1" data-transition="fade" data-theme="b" data-icon="">
                         text
                    </a>
                </li>
                <li>
                    <a href="#page1" data-transition="fade" data-theme="b" data-icon="">
                        text
                    </a>
                </li>
                <li>
                    <a href="#page1" data-transition="fade" data-theme="b" data-icon="">
                         text
                    </a>
                </li>
                <li>
                    <a href="#page1" data-transition="fade" data-theme="b" data-icon="">
                        text
                    </a>
                </li>
            </ul>
      </div>


</div>

I need to add a button "menu" if the screen of the device is to small for shows three button.

Something like this : http://img30.imageshack.us/img30/8634/o6c5.png

I know that I need to add a rule to the css but i don't how Please,Thanks you

도움이 되었습니까?

해결책

You can check out how they do it in Twitters bootstrap. Basically you would have a media-query for a specific screen size, and format the page in that manner.

In fact, why don't you just integrate Twitter's Bootstrap and you'll get everything else you could run into: http://getbootstrap.com/

Check it out, it has everything you want/need.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top