Ama*_*ney 4 php symfony sonata-admin
我想覆盖一个css文件,即驻留在sonata管理包项目的sonata-project/admin-bundle/Sonata/AdminBundle/Resources/public/bootstrap/css路径中.请帮帮我.
M K*_*aid 10
你有一种方法可以覆盖奏鸣曲管理员的css文件,但记住这会覆盖块,stylesheets但你仍然可以stylesheets通过调用来调用父块{{ parent() }}
{% block stylesheets %}
/* this will override the parent block you can define here your css files*/
<link rel="stylesheet" href="{{ asset('cssfilepath.css') }}"/>
{% endblock %}
{% block stylesheets %}
/*this will extend the parent block */
{{ parent() }}
<link rel="stylesheet" href="{{ asset('cssfilepath.css') }}"/>
{% endblock %}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8072 次 |
| 最近记录: |