迅睿開源框架是一款PHP8高性能·簡(jiǎn)單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
{if $indexc}
index.css
{else 圖片index頁(yè)}
photo_index.css
{else 圖片list頁(yè)}
photo_list.css
{else 圖片show頁(yè)}
photo_show.css
{else 新聞show頁(yè)}
news_show.css
{else 單頁(yè)show頁(yè)}
about_show.css
{else}
qita.css
{/if}
如上,請(qǐng)問我這里面的語(yǔ)法要怎么寫?
{if $indexc} index.css {else if MOD_DIR == 'photo' && $indexm} photo_index.css {else if MOD_DIR == 'photo' && $ci->router->class == 'category'} photo_list.css {else if MOD_DIR == 'photo' && $ci->router->class == 'show'} photo_show.css {else if MOD_DIR == 'news' && $ci->router->class == 'show'} news_show.css {else} qita.css {/if}
趕緊做筆記吧
【姜競(jìng)凱】1樓
非常感謝,請(qǐng)問能加入單頁(yè)的判斷嗎?比如我有個(gè)單頁(yè)是TEAM,有個(gè)單頁(yè)是ABOUT,也要讓他們顯示不同的css呢?
我收藏了,好文章,1樓大神少寫了個(gè)單頁(yè)
{if $indexc} index.css {else if MOD_DIR == 'photo' && $indexm} photo_index.css {else if MOD_DIR == 'photo' && $ci->router->class == 'category'} photo_list.css {else if MOD_DIR == 'photo' && $ci->router->class == 'show'} photo_show.css {else if MOD_DIR == 'news' && $ci->router->class == 'show'} news_show.css {else} qita.css {/if}趕緊做筆記吧
【姜競(jìng)凱】1樓
非常感謝,請(qǐng)問能加入單頁(yè)的判斷嗎?比如我有個(gè)單頁(yè)是TEAM,有個(gè)單頁(yè)是ABOUT,也要讓他們顯示不同的css呢?
我收藏了,好文章,1樓大神少寫了個(gè)單頁(yè)