mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Fix code example [skip ci]
This commit is contained in:
committed by
GitHub
parent
72e8b911fe
commit
3850e663e8
@ -331,14 +331,14 @@ There are two methods to generate tags wrapping embedded styles and scripts:
|
|||||||
|
|
||||||
Gives you
|
Gives you
|
||||||
|
|
||||||
<style>.danger { color: #f00; }</style>
|
<style media="print">.danger { color: #f00; }</style>
|
||||||
|
|
||||||
|
|
||||||
<?= Html::script('alert("Hello!");') ?>
|
<?= Html::script('alert("Hello!");') ?>
|
||||||
|
|
||||||
Gives you
|
Gives you
|
||||||
|
|
||||||
<script media="print">alert("Hello!");</script>
|
<script>alert("Hello!");</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to use an external style in a CSS file:
|
If you want to use an external style in a CSS file:
|
||||||
|
|||||||
Reference in New Issue
Block a user