Visualizzazione dei risultati da 1 a 5 su 5

Visualizzazione discussione

  1. #3
    Sono riuscito a capire dove strava il problema e sono riuscito creare un modello ripulendo un template che incorporava questa libreria ma ho ancora 3 problemi:

    1.Netbeans mi dice che non posso scrivere aria-expanded="false"
    2.Il validatore di codice mi trova un problema nell'head:
    http://validator.w3.org/

    Ecco il codice:

    codice HTML:
    <!DOCTYPE html>
    <html>
      <head>
    
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    
        <!-- Bootstrap core CSS -->
        <link href="librerie/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    
        <!-- Custom styles for this template -->
        <link href="navbar.css" rel="stylesheet">
    
        <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
        <!--[if lt IE 9]><script src="librerie/bootstrap/ie/ie8-responsive-file-warning.js"></script><![endif]-->
        <script src="librerie/bootstrap/ie/ie-emulation-modes-warning.js"></script>
    
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="librerie/bootstrap/ie/html5shiv.min.js"></script>
          <script src="librerie/bootstrap/ie/respond.min.js"></script>
        <![endif]-->
      </head>
      <body>
    
        <div class="container">
    
          <!-- Static navbar -->
          <nav class="navbar navbar-default" role="navigation">
            <div class="container-fluid">
              <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                  <span class="sr-only">Toggle navigation</span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Nome del progetto</a>
              </div>
              <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                  <li class="active"><a href="#">Home</a></li>
                  <li><a href="#">About</a></li>
                  <li><a href="#">Contact</a></li>
                  <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                      <li><a href="#">Action</a></li>
                      <li><a href="#">Another action</a></li>
                      <li><a href="#">Something else here</a></li>
                      <li class="divider"></li>
                      <li class="dropdown-header">Nav header</li>
                      <li><a href="#">Separated link</a></li>
                      <li><a href="#">One more separated link</a></li>
                    </ul>
                  </li>
                </ul>
              </div><!--/.nav-collapse -->
            </div><!--/.container-fluid -->
          </nav>
        </div> <!-- /container -->
        <script src="librerie/jquery/jquery-2.1.1.min.js"></script>
        <script src="librerie/bootstrap/js/bootstrap.min.js"></script>
        <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
        <script src="librerie/bootstrap/ie/ie10-viewport-bug-workaround.js"></script>
      </body>
    </html>
    fonte:

    http://getbootstrap.com/examples/navbar/
    Ultima modifica di giannino1995; 15-11-2014 a 17:31
    Più pratica in futuro...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.