织梦手机端使用的标签

2019-12-19 23:55:38 15

头部标签:{dede:include filename="head_m.htm"/}
尾部标签:{dede:include filename="footer_m.htm"/}

JS和CSS分别使用的标签:
assets/mobile/js/
assets/mobile/css/

举例子:
    <link href="assets/mobile/css/main.css" rel="stylesheet" type="text/css">
    <link href="assets/mobile/css/style-17.css" rel="stylesheet" type="text/css">


手机端文章列表循环举例:

{dede:arclist   row='6'   titlelen='50'     orderby ='pubdate'     }  切记大括号里面不要带typeid
                     <li><a href="view.php?aid=[field:id/]">
                        <img src="[field:picname/]" /><p>[field:title/]</p>
                    </a></li>
{/dede:arclist}