中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

WordPress仿站時(shí),多個(gè)CSS怎么處理

2018-11-01    來(lái)源:學(xué)做網(wǎng)站論壇

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬(wàn)Linux鏡像隨意使用

在做Wordpress仿站時(shí),當(dāng)我們碰到一個(gè)網(wǎng)站里面,引用了非常多的css文件的時(shí)候,應(yīng)該怎么處理呢?如:

Wordpress仿站時(shí),多個(gè)CSS怎么處理

在WordPress仿站教程中,我們講了WP仿站必須有一個(gè)css文件叫做style.css,這個(gè)時(shí)候,我們只需要從上面的幾個(gè)css文件中隨便找一個(gè)文件重命名為style.css,然后把這個(gè)文件移動(dòng)到模板根目錄下,其他幾個(gè)文件不用動(dòng),還是存放在images文件夾下面。

完成上面的操作之后,要如何改成WP標(biāo)簽調(diào)用?

假如我們把第一個(gè)main.css改成了style.css,然后移動(dòng)到了images文件夾外面。上面的代碼就寫(xiě)成:


<link type="text/css" rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>">
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/images/ie.css">
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/images/multi.css">
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/images/index.css">
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/images/addthis.css" media="all">

因?yàn)?lt;?php bloginfo('template_directory'); ?>/style.css這個(gè)代碼就等于<?php bloginfo( 'stylesheet_url' ); ?>

標(biāo)簽: 代碼

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇:WordPress網(wǎng)站導(dǎo)航如何實(shí)現(xiàn)分類目錄與頁(yè)面的混排

下一篇:jquery 3d輪播圖制作方法 (實(shí)現(xiàn)旋轉(zhuǎn)輪播圖)