laravel作业
<!-- 子模版 -->
<link rel="stylesheet" type="text/css" href="{{asset('').'css/bootstrap.min.css'}}">
@extends('layout.parents')
@section('title','主页内容')
@section('content')
<form action="{{url('useer')}}">
<input type="hidden" name="_token" value="{{csrf_token()}}">
<label for="song">
<input type="text"name="song" id="song"placeholder="请输入歌曲名">歌曲名
</label>
<input type="submit" value="搜索">
</form>
@parent
@endsection
<!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.0">
<title>@yield('title','音乐回收站')</title>
</head>
<style type="text/css">
body {
min-width: 550px;
}
body,html{
margin: 0;
}
header{
width: 100%;
background-color: gray;
}
width: 100%;
background-color: yellow;
height: 200px;
padding-left: 200px;
padding-right: 200px;
box-sizing: border-box;
}
.column{
float: left;
height: 200px;
}
width: 100%;
background-color: palegoldenrod;
}
position: relative;
width: 200px;
background-color: orange;
margin-left: -100%;
right: 200px;
}
width: 200px;
background-color: pink;
margin-right: -200px;
}
footer{
clear: both;
width: 100%;
background-color: gray;
}
</style>
<body>
<header>header</header>
<div id="container">
<div id="center" class="column">
@section('content')
<h2>这是父模板</h2>
@show
</div>
<div id="left" class="column">left</div>
<div id="right" class="column">right</div>
</div>
<footer >footer</footer>
</body>
</html>