Step 5: Style it

This bundle supplies some basic CSS markup that will make it usable. It's included in the Resources/assets/css directory.

这个功能包支持一些基本的CSS标识,这很有用。它包含在 Resources/assets/css 目录中。


To use the basic CSS in your templates with Assetic, place the following in your base template::

要在您的模板中通过Assetic来使用这些基本的CSS,请将下列语句放到您的基础模板中:

<!-- CSS -->
{% stylesheets '@FOSCommentBundle/Resources/assets/css/comments.css' %}
<link rel="stylesheet" href="` asset_url `" type="text/css" />
{% endstylesheets %}

That is it!

Return to the index.

返回到指南索引页