织梦pc手机端模板代码

织梦pc手机端模板代码
52jyhcc
52jyhcc
205
阅读
0
评论
2021年11月08日15:16:26 0 205

织梦pc手机端模板代码,首页 列表页 封面页 内容页,仅供学习参考

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="renderer" content="webkit">

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >

<meta http-equiv="Cache-Control" content="no-transform " />

<title>{dede:field.seotitle /}_{dede:field.title/}</title>

<meta name="keywords" content="{dede:field.keywords/}" />

<meta name="description" content="{dede:field.description function='html2text(@me)'/}_{dede:global.cfg_webname/}" />

<link rel="stylesheet" type="text/css" href="{dede:global.cfg_basehost/}/templets/default/hs_pc/css/style.css" />

<script type="text/javascript" src="{dede:global.cfg_basehost/}/templets/default/hs_pc/js/jquery-1.7.1.min.js"></script>

<meta http-equiv="mobile-agent" content="format=xhtml;url={dede:type}[field:typeurl function='getMobileListUrl(@me)'/]{/dede:type}">

<script type="text/javascript">

if(window.location.toString().indexOf('pref=padindex') != -1) {} else {

if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|S onyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))) {

if(window.location.href.indexOf("?mobile") < 0) {

try {

if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {

window.location.href = "{dede:type}[field:typeurl function='getMobileListUrl(@me)'/]{/dede:type}";

} else if(/iPad/i.test(navigator.userAgent)) {} else {}

} catch(e) {}

}

}

}

</script>

</head>

<body>

<script type="text/javascript">

$(function(){

var nav=$(".nav"); //得到导航对象

var win=$(window); //得到窗口对象

var sc=$(document);//得到document文档对象。

win.scroll(function(){

  if(sc.scrollTop()>=100){

    nav.addClass("fixednav"); 

   $(".navTmp").fadeIn(); 

  }else{

   nav.removeClass("fixednav");

   $(".navTmp").fadeOut();

  }

})  

})

</script>

<style type="text/css">

.fixednav {

    position: fixed;

    top: 0px;

    left: 0px;

    width: 100%;

    z-index: 1;

}

</style>

<div id="header">

<div id="toolbar"><div class="tool">

     <div class="left fl"><a href="{dede:global.cfg_basehost/}/canyinmeishi/list_474_1.html">天天美食,菜谱大全,餐饮美食,小吃技术,烹饪技术,学的不仅是技术,更是梦想</a></div>

<div class="right fr">

   <div class="left fl"><a href="{dede:global.dedemao_domain/}/canyinmeishi/list_474_1.html" target="_blank">美食网手机版</a></div>

</div></div>

<div class="head">

<div class="logo fl"><a href="{dede:global.cfg_basehost/}/canyinmeishi/list_474_1.html"><img src="{dede:global.cfg_basehost/}/templets/default/hs_pc/logoxx.png" width="280" height="60"/></a></div>

<div class="left fr">

<div class="serach fl">

<form class="search-form" id="form1" action="{dede:global.cfg_basehost/}/plus/search.php"  method="post" name="formsearch"  onsubmit="if(document.getElementById('searchword').value=='请输入搜索内容')return false;">

<input type="hidden" name="kwtype" value="0" />

<input type="text" name="keyword" type="text" id="search-keyword"  value="" style="color: rgb(153, 153, 153);" onwebkitspeechchange="jQuery(this).closest('form').submit();" x-webkit-speech=""   onclick="clearCname()" class="search_k fl">

<button type="submit" onClick="return dosearch($('#q').val());" class="search_s fl">搜索</button>

</form>

</div>

<div class="right fr">

      <div class="hs13-book">

          <a href="{dede:global.cfg_basehost/}" target="_blank">学习&互联网+<span>终身学习是一种信仰</span></a>

      </div>

</div>

</div><div class="cl"></div>

</div>

</div>

</div>

<div class="nav"><ul>

{dede:channelartlist row='20' typeid='474'}

<li style="width:10%"><a href="{dede:field name='typeurl'/}" target="_blank">{dede:field name='typename'/}</a></li>

{/dede:channelartlist}

</ul></div>

<div class="subnav"><ul>

{dede:channelartlist row='50'}

<li><a href="{dede:field name='typeurl'/}"  target="_blank">{dede:field name='typename'/}</a></li>

{/dede:channelartlist}

    </ul>

</div>

<div class="container list_repeat">

<div class="container-bd list_top">

     <div class="main-wrap">

         <div class="article-left">

     <div class="title"><h3 class="ico-07">{dede:field name='position'/}</h3>

<span></span></div>

<div class="index-item">

{dede:channelartlist row='128'}  

<div class="item-box">

<div class="ta"><h4><a href="{dede:field name='typeurl'/}" title="{dede:field name='typename'/}" target="_blank">{dede:field name='typename'/}</a></h4></div>

<div class="tb">{dede:arclist titlelen='60' row='1' limit='0,1'}<h4><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank">[field:title/]</a></h4>

<p>

  [field:description function='cn_substr(@me,150)'/]...</p>{/dede:arclist}

</div>

<div class="tc">

{dede:arclist titlelen='60' row='5' limit='1,5'}  

<li><span class="time">[field:pubdate function="GetDateMK(@me)"/]</span><a href="[field:arcurl /]" title="[field:fulltitle/]" target="_blank">[field:title/]</a></li>

{/dede:arclist}

</div></div>

{/dede:channelartlist}   

</div><div class="cl"></div>

</div><!-- /left -->

<div class="article-right">

<div class="right-item">

<div class="title"><h3>热点阅读</h3></div>

<div class="box">

{dede:arclist row=12 titlelen=90 orderby='pubdate'}  

<li><span class='a[field:global name=autoindex /]'>[field:global name=autoindex /]</span><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank">[field:title/]..</a></li>

{/dede:arclist}

</div></div>

<div class="right-item">

<div class="title"><h3>学习推荐</h3></div>

<div class="zlm">

<style type="text/css">

.zlm li{width:29.3%;float:left;text-align:center;background:#efefef;margin: 2%;padding: 3px 0px;overflow: hidden;

height: 25px;

}

</style>

{dede:channelartlist row='50'}

<li><a href="{dede:field name='typeurl'/}"  target="_blank">{dede:field name='typename'/}</a></li>

{/dede:channelartlist}

<div style="clear:both"></div>

</div></div>

<div class="right-item">

<div class="title"><h3>网友最爱</h3></div>

<div class="box">

{dede:arclist row=12 titlelen=90 orderby='hot'}

<li><span class='a[field:global name=autoindex /]'>[field:global name=autoindex /]</span><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank">[field:title/]..</a></li>

{/dede:arclist}  

</div>

</div>

<div class="right-item">

<div class="title"><h3><a href="{dede:global.cfg_basehost/}/tags.html" target="_blank">相关推荐</a></h3></div>

<div class="box">

{dede:tag sort='hot' getall='0'}

<li><a href="http://www.58how.com[field:link/]"  target="_blank">&bull;[field:tag /]</a></li>

{/dede:tag}

<div style="clear:both"></div>

</div></div>

<div class="right-item">

<div class="title"><h3><a href="{dede:global.cfg_basehost/}/tags.html" target="_blank">全站推荐</a></h3></div>

<div class="box">

{dede:tag type='current'}

<li><a href="http://www.58how.com[field:link/]"  target="_blank">&bull;[field:tag /]</a></li>

{/dede:tag}

<div style="clear:both"></div>

</div></div>

     </div>

<div style="clear:both"></div>

     </div>

  </div>

  <div class="c1 container-bottom"></div>

</div>

{dede:include filename="footerhs0.htm"/}

</body>

</html>

温馨提示! 你需要支付 ¥2.00 元后才能查看付费内容 微信支付 支付宝支付
打赏 点赞(0)
weinxin
投诉建议
文章名+链接地址,发送到此微信:tourism52
thinkphp常用系统配置大全 站长学院

thinkphp常用系统配置大全

Thinkphp是目前最主流的php轻量型框架之一,作为一个功能完备的php框架,它里面内置了许多的配置,通过修改这些系统的设置可以很方便的对thinkphp的一些内容进行修改,本...
dede织梦58种常见的标签调用,织梦标签调用 站长学院

dede织梦58种常见的标签调用

下面总结了58种常见的标签调用,包括关键描述调用、指定调用栏目、列表文章调用、频道栏目调用、当前栏目名称、栏目导航调用、模板路径调用、网站标题调用、友情链接调用、网站版权调用、网站...

评论列表 共有 0 条评论

暂无评论