标签:style http io ar 使用 sp on 文件 div
<?php if (class_exists(‘CJuiWidget’, false)) { ?> <link type=”text/css” rel=”stylesheet” media=”screen” href=”<?php echoYii::app()->theme->getBaseUrl(); ?>/css/jui/jquery-ui.css” /> <?php } ?>这段代码的思路是,一旦出现CJuiWidget类,说明当前页面使用了CJuiWidget派生出来的widget,那么我们就可以引入一个当前theme的css样式来覆盖自带的样式。这样完全由主题确定是否使用自定义的Jui样式是目前我想到的最好的解决方法。标签:style http io ar 使用 sp on 文件 div
原文地址:http://www.cnblogs.com/lhrs/p/4137995.html