放入laravel 5时,我无法切换/折叠链接

时间:2016-11-02 09:35:24

标签: laravel-5

@extends('layouts.app')
  @section('content')
  <!DOCTYPE html>
  <html lang="en">
  <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>siawa VPN Appliance</title>
    <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"></script>
    <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  <script src="bootstrap-formhelpers-countries.js"></script>
  <script src="bootstrap-formhelpers-countries.flags.css"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>


<a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Advanced</a>
<div class="collapse" id="collapseExample">
            <div class="container" style="margin-top:15px">
  <form class="form" action="##" method="post" id="registrationForm">
          <fieldset>
              <div class="form-group" >

                  <div class="col-xs-6" style="margin-top:15px">
                      <label class="control-label" for="Port">Port</label>
                      <input class="form-control" name="Port" id="Port" placeholder="port" title="enter your port" type="text">
                  </div></div>
</fieldset>
      </form>
      <hr>
  </div>
</div>

它适用于HTML文件,但当我在laravel 5中放入@section('content')时它不起作用。已添加以下代码。当我点击高级链接时它会打开但不会如果再次点击则关闭。因此,只有在打开但不关闭的情况下,切换才是单面的。

0 个答案:

没有答案