Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 自动滚动至区段Laravel_Php_Html_Laravel - Fatal编程技术网

Php 自动滚动至区段Laravel

Php 自动滚动至区段Laravel,php,html,laravel,Php,Html,Laravel,如何使自动滚动到laravel 4.2中的部分 如果是html格式,则可以这样做: <a href="#contentA">A</a> <div id="contentA">AAAAA</div> //content.blade.php <div id="contentA">AAAAA</div> AAAAA 生成路由的URL,然后添加#您的"部分,并重定向到该URL $url = URL::route('mypage'

如何使自动滚动到laravel 4.2中的部分

如果是html格式,则可以这样做:

<a href="#contentA">A</a>
<div id="contentA">AAAAA</div>
//content.blade.php

<div id="contentA">AAAAA</div>
AAAAA

生成路由的URL,然后添加#您的"部分,并重定向到该URL

$url = URL::route('mypage') . '#content';
return Redirect::to($url);

生成路由的URL,然后添加#您的_部分,并重定向到该URL

$url = URL::route('mypage') . '#content';
return Redirect::to($url);
可能的重复可能的重复