shqear/yii2-embedcss
Composer 安装命令:
composer require shqear/yii2-embedcss
包简介
Embed Css with IDE checking or intellisense.
README 文档
README
thanks for mitrii/yii2-embedjs
Yii2 embed Css
Embed Css with IDE checking or intellisense
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist shqear/yii2-embedcss "*"
or add
"shqear/yii2-embedcss": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php \shqear\widgets\EmbedCss::begin(); ?> <style type="text/css"> html { background: red; } </style> <?php \shqear\widgets\EmbedCss::end(); ?>
Or with 'depends' option
<?php \shqear\widgets\EmbedCss::begin(['depends' => '\yii\web\JqueryAsset']); ?> <style> html { background: red; } </style> <?php \shqear\widgets\EmbedCss::end(); ?>
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-06-30