Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.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
laravel 4中的负载响应css_Css_Laravel_Laravel 4 - Fatal编程技术网

laravel 4中的负载响应css

laravel 4中的负载响应css,css,laravel,laravel-4,Css,Laravel,Laravel 4,我知道您可以使用以下方式在laravel 4中加载css和脚本: {{HTML::style('css/style.css');}} 它将产生: 现在,我如何加载我的响应css,使其具有以下特性: 您可以传递具有额外属性(如媒体)的数组作为第二个参数 {{ HTML::style('css/tablet.css', array('media'=>'only screen and (max-width: 1023px), only screen and (max-device-width

我知道您可以使用以下方式在laravel 4中加载css和脚本:

{{HTML::style('css/style.css');}}

它将产生:

现在,我如何加载我的响应css,使其具有以下特性:


您可以传递具有额外属性(如媒体)的数组作为第二个参数

{{ HTML::style('css/tablet.css', array('media'=>'only screen and (max-width: 1023px), only screen and (max-device-width : 1023px)'); }}

您可以将具有额外属性(如媒体)的数组作为第二个参数传递

{{ HTML::style('css/tablet.css', array('media'=>'only screen and (max-width: 1023px), only screen and (max-device-width : 1023px)'); }}

也可以使用以下方法,而不是使用刀片生成整个链接

 <link href="{{ URL::to('/css/style.css')}}" rel="stylesheet" media="screen">

您也可以使用以下方法,而不是使用刀片服务器生成整个链接

 <link href="{{ URL::to('/css/style.css')}}" rel="stylesheet" media="screen">