本文整理汇总了PHP中frontend\assets\AppAsset::addCss方法的典型用法代码示例。如果您正苦于以下问题:PHP AppAsset::addCss方法的具体用法?PHP AppAsset::addCss怎么用?PHP AppAsset::addCss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类frontend\assets\AppAsset
的用法示例。
在下文中一共展示了AppAsset::addCss方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<?php
use common\widgets\FVariable;
use frontend\assets\AppAsset;
AppAsset::register($this);
AppAsset::addCss($this, '@web/css/index.css');
AppAsset::addScript($this, '@web/js/index.js');
echo $this->render('/layouts/tabbar', ['cur' => 'index']);
?>
<div class="swiper-container banner">
<div class="swiper-wrapper">
<?php
if ($bannerList) {
foreach ($bannerList as $k => $v) {
$address = FVariable::$domainUrl . $v->address;
$wapUrl = FVariable::$domainUrl . $v->wapUrl;
echo '<div class="swiper-slide swiper-no-swiping">';
echo ' <div class="img" style="background: url(' . $address . ') no-repeat center top;"></div>';
echo '<div class="wp">';
echo '<div class="txt1 ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="1s" swiper-animate-delay="0.2s">';
echo '<img src="' . $wapUrl . '">';
echo '</div>';
echo '</div>';
echo '</div>';
echo '';
echo '';
}
}
?>
</div>
<div class="swiper-pagination banner-swiper-pagination"></div>
示例2:
<?php
use frontend\assets\AppAsset;
AppAsset::register($this);
AppAsset::addCss($this, '@web/css/life.css');
echo $this->render('/layouts/tabbar', ['cur' => 'life']);
?>
<div class="top_banner"></div>
<div class="life_wp">
<div class="life_bg layout1280">
<?php
?>
<div class="sidermeun">
<h2>橙鲜生活</h2>
<ul>
<?php
use common\widgets\FVariable;
foreach ($modelList as $k => $v) {
$class = '';
if ($id == $v->categoryId) {
$class = 'cur';
}
echo ' <li><a class="' . $class . '" href="' . Yii::$app->urlManager->createUrl([FVariable::$lifeIndex_url, 'id' => $v->categoryId]) . '">' . $v->title . '</a></li>';
}
?>
</ul>
</div>
<div class="ly-right">
<h2 class="fm ft26"><?php
echo $model->title;
示例3:
<?php
use frontend\assets\AppAsset;
AppAsset::register($this);
AppAsset::addCss($this, '@web/css/join.css');
AppAsset::addScript($this, '@web/js/join.js');
echo $this->render('/layouts/tabbar', ['cur' => 'about']);
?>
<!-- banner1 -->
<div class="swiper-container meun_banner banner1_wp">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="layout1190">
<div class="h1">- 加盟条件 -</div>
<ul>
<li class="ani p1" swiper-animate-effect="flipInY" swiper-animate-duration="0.5s" swiper-animate-delay="0"></li>
<li class="ani p2" swiper-animate-effect="flipInY" swiper-animate-duration="0.5s" swiper-animate-delay="0.2s"></li>
<li class="ani p3" swiper-animate-effect="flipInY" swiper-animate-duration="0.5s" swiper-animate-delay="0.4s"></li>
<li class="ani p4" swiper-animate-effect="flipInY" swiper-animate-duration="0.5s" swiper-animate-delay="0.6s"></li>
</ul>
</div>
</div>
</div>
</div>
<!-- banner2 -->
<div class="swiper-container meun_banner banner2_wp">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="layout1190">
<div class="h1">- 加盟流程 -</div>
<div class="ani txt" swiper-animate-effect="bounceIn" swiper-animate-duration="1s" swiper-animate-delay="0.2s"></div>
示例4:
<?php
use frontend\assets\AppAsset;
AppAsset::register($this);
AppAsset::addCss($this, '@web/css/orc.css');
AppAsset::addScript($this, '@web/js/orc.js');
echo $this->render('/layouts/tabbar', ['cur' => 'orc']);
?>
<div class="swiper-container banner_max" id="banner_max">
<div class="swiper-wrapper">
<!-- banner1 -->
<div class="swiper-slide">
<div class="banner1_wp">
<img src="/images/com/arr.png" class="img_arr pt-page-moveIconUp">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="layout">
<div class="tit_txt ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="1s" swiper-animate-delay="0"></div>
<ul>
<li class="ani p1" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0"></li>
<li class="ani p2" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.1s"></li>
<li class="ani p3" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.2s"></li>
<li class="ani p4" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s"></li>
<li class="ani p5" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.4s"></li>
<li class="ani p6" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.5s"></li>
<li class="ani p7" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.6s"></li>
<li class="ani p8" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.7s"></li>
</ul>
<div class="banner1_img"></div>
</div>
</div>
示例5:
<?php
use frontend\assets\AppAsset;
AppAsset::register($this);
AppAsset::addCss($this, '@web/css/new.css');
echo $this->render('/layouts/tabbar', ['cur' => '']);
?>
<div class="top_banner"></div>
<div class="content_pg layout1190">
<div class="breadlink">您当前位置:<a class="cl_b" href="<?php
echo \common\widgets\FVariable::$articleIndex_url;
?>
">新闻列表</a> <span class="cl_c">></span> <span class="cl_c">新闻内页</span></div>
<div class="bd">
<div class="main_content">
<div class="date"><?php
echo $model->publishTime;
?>
</div>
<h1><?php
echo $model->title;
?>
</h1>
<!-- <div class="ext">橙汁先生联合uber健康跨界案</div>-->
<div class="news_bd">
<?php
echo $model->content;
?>
</div>
</div>
示例6:
<?php
use frontend\assets\AppAsset;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use common\widgets\GlobalArray;
AppAsset::register($this);
AppAsset::addCss($this, '/css/font-awesome.css');
?>
<div class="evaluate">
<div class="evaluate-head">
<div>商品信息</div>
<div>购买时间</div>
<div>数量</div>
</div>
<div class="evaluate-con">
<?php
$productDetails = \frontend\models\OrderDetail::findByOrderDetail($details->id);
$order = \frontend\models\Order::findOne($details->id);
$orderDetail = $order->getProductDetail()->all();
foreach ($orderDetail as $detk => $detv) {
$product = \frontend\models\OrderDetail::findOne($detv['id']);
$product = $product->getProduct()->one();
?>
<div>
<div class="eva-img"><img src="<?php
echo GlobalArray::$imgUrlArray['0'] . $product['productLogo'];
?>
" /><?php
echo $product['productName'];
示例7:
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use frontend\assets\AppAsset;
$this->title = '【骑行中国-二手自行车专卖网】';
$this->params['bodyClass'] = 'home';
$bundle = AppAsset::register($this);
AppAsset::addCss($this, $bundle->baseUrl . '/vender/owlcarousel/assets/owl.carousel.css');
AppAsset::addScript($this, $bundle->baseUrl . '/vender/owlcarousel/owl.carousel.min.js');
?>
<section class="section-banner">
<h2 class="slogan"><img src="<?php
echo $bundle->baseUrl;
?>
/image/banner-text1.png" /></h2>
<div class="search-box" >
<input type="text" class="search-input" placeholder="请输入你想要的品牌,车型" />
<button type="button" class="search-btn" >搜索</button>
</div>
</section><!-- /.section-banner -->
<section class="section-portfolio">
<div class="section-title">
<h2>哪一款单车才是你的最爱?</h2>
<span></span>
</div>
<?php
echo \widgets\PortfolioWidget::widget(['items' => [['link' => '', 'caption' => '通勤自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_common.jpg'], ['link' => '', 'caption' => '山地自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_mountain_1.jpg'], ['link' => '', 'caption' => '公路自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_road_1.jpg'], ['link' => '', 'caption' => '折叠自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_folding.jpg'], ['link' => '', 'caption' => '女式自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_girl.jpg'], ['link' => '', 'caption' => '儿童自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_children.jpg'], ['link' => '', 'caption' => '电动自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_electric.jpg'], ['link' => '', 'caption' => '死飞自行车', 'image' => $bundle->baseUrl . '/image/portfolio/bike_fix_gear.jpg']]]);
?>
示例8:
<?php
use frontend\assets\AppAsset;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use frontend\models\Area;
use common\widgets\Tool;
use common\widgets\FVariable;
AppAsset::register($this);
AppAsset::addScript($this, '/datepicker/WdatePicker.js');
AppAsset::addCss($this, '/datepicker/skin/WdatePicker.css');
?>
<div class="vipcon">
<div class="vipcon-left">
<?php
$index_vip = "vcenter";
echo $this->render(\common\widgets\FVariable::$layoutVipmenu_view, ['index_vip' => $index_vip]);
?>
</div>
<div class="vipcon-right">
<div class="datum">
<div class="datum-head">
<div class="datum-head-left">
<p><span>昵称:</span><?php
echo Tool::echoEncodeString($model->nickName);
?>
</p>
<p><span>手机:</span><?php
echo Tool::echoEncodeString($model->mobile);
?>