mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +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
|
||||
|
||||
<style>.danger { color: #f00; }</style>
|
||||
<style media="print">.danger { color: #f00; }</style>
|
||||
|
||||
|
||||
<?= Html::script('alert("Hello!");') ?>
|
||||
|
||||
Gives you
|
||||
|
||||
<script media="print">alert("Hello!");</script>
|
||||
<script>alert("Hello!");</script>
|
||||
```
|
||||
|
||||
If you want to use an external style in a CSS file:
|
||||
|
||||
Reference in New Issue
Block a user