-----------前台代码----------需要用mip的最近去做动效----
界面上不能引入外部的css js 一、mip验证通不过 二、拖慢网站速度 所以写出内联样式 及官网提供的mip组件
mip的ajax数据渲染规则 如果跟你的渲染冲突 被你当前的规则解析了 你需要在mip的渲染规则外添加上你的阻止标签解析的方法 如果 {反标签解析}{{WordNum}}{/反标签解析}
部分框架会使用literal 作为关键字 反标签解析
<html mip>
<head>
<title>{$book['SeoName']} title>
<meta name="Keywords" content="{$book['SeoKey']}" />
<meta name="description" content="{$book['SeoDescription']}">
<meta charset="utf-8" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,user-scalable=no">
<meta name="applicable-device" content="mobile" />
<meta name="format-detection" content="telephone=no" />
<link rel="canonical" href="http://book/{$book['Id']}.html" />
<link rel="stylesheet" type="text/css" href="https://c.mipcdn.com/static/v1/mip.css">
<style mip-custom>
.mip-a-74{width:100%}.mip-div-96{text-indent:2em;height:10rem;overflow:hidden}.mip-section-251{margin:10px 12px 10px}.mip-img-256{width:100%;height:auto;background:red}.mip-a-595{background:#28c98c}.none{display:none}.mip-div-659{padding-left:17px;padding-right:17px}.mip-div-63{float:left;margin:0 10px 15px 0}.mip-ul-1{border:1px solid #ccc;width:96%;margin-left:2%;margin-top:10px}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,#textarea,p,blockquote,th,td,aside,article,figcaption,figure,header,hgroup,menu,nav,section{margin:0;padding:0}body,html,input{font:12px "Helvetica Neue",HelveticaNeue,Helvetica-Neue,Helvetica,'\5fae\8f6f\96c5\9ed1';background:#f6f7f9;color:#33373d;-webkit-text-size-adjust:none;width:100%;overflow:hidden}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;overflow-x:hidden;overflow-y:auto}table{border-collapse:collapse;border-spacing:0}caption,th{text-align:left}fieldset,img{border:0}q:before,q:after{content:''}button,input,select,#textarea{font-size:100%;vertical-align:middle;outline:0}legend{color:#333}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}ol,ul{list-style:none}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:400}a{color:#444;text-decoration:none}a:hover{text-decoration:none}h1,h2,h3,h4,h5,h6{font-size:100%}input[type="button"],input[type="submit"],input[type="reset"]{-webkit-appearance:none}input,select,#textarea{outline:0 none}input{border:0}header,menu,nav,section,article,aside{display:block}em,i,u,s,b,strong{font-style:normal;font-weight:normal;text-decoration:none}.fl{float:left}.fr{float:right}header{position:relative;height:45px;line-height:45px}.home-head .fix{background:#fff;width:100%;position:fixed;top:0;left:0;z-index:9999;border-bottom:1px solid #ddd}.home-head .logo{float:left;padding:0 10px;font-size:1.5rem;color:#000}.dex_name{margin-left:6rem}.home-head .mNav,.head .mNav{position:absolute;left:50%;margin-left:-50px;top:0}.mNav{height:24px;margin:9px 0 0 20px;border:1px solid #ed4259;border-radius:5px}.mNav a{display:block;float:left;height:24px;line-height:24px;padding:0 12px;font-size:1.1rem;color:#ed4259;border-right:1px solid #ed4259}.mNav a:last-child{border:0}.mNav .active{background-color:#ed4259;color:#fff}.back{display:inline-block;width:30px;height:45px}.back::before{content:"";display:inline-block;width:10px;height:10px;margin:15px 5px 0 15px;border-top:1px solid #333;border-right:1px solid #333;-webkit-transform:rotateZ(135deg);transform:rotateZ(225deg)}.arrow-r{content:"";display:inline-block;width:10px;height:10px;margin:15px 5px 0 15px;border-bottom:1px solid #969ba3;border-left:1px solid#969ba3;-webkit-transform:rotateZ(135deg);transform:rotateZ(225deg)}.wrap{background:#fff;margin-bottom:8px}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:opacity .25s;transition:opacity .25s;opacity:0;background-color:#000;width:100%;height:100%}.foot-b{width:100%;border-top:1px solid #d9d9d9;text-align:center;position:relative}.foot-b p{height:46px;line-height:46px;font-size:1.2rem}.foot-b p a{padding:0 10px}.foot-b #goTop{position:absolute;right:10px;top:12px;text-indent:-9999px;width:26px;height:26px;background:#ccc url(s/index-ico.png) 5px -206px no-repeat;background-size:24px auto}.foot-nav{display:-moz-box;display:-webkit-box;display:box}.foot-nav a{display:block;line-height:40px;text-align:center;font-size:1.3rem;-moz-box-flex:1;-webkit-box-flex:1;box-flex:1}.bgwhite{background-color:#fff}.footer_title{padding:15px 12px 3px;font-size:1.3rem;border-top:16px solid #fff}.footer_message{overflow:hidden;padding:0 12px 20px}.footer_message .fl{max-width:60%}.footer_message .fr{max-width:40%;text-align:center}.footer_message div p span{display:block;font-size:1.1rem;color:#999;margin-top:7px}.footer_message .ewm img{display:block;width:100px;height:100px}.swiper-container{margin:0 auto;position:relative;overflow:hidden;z-index:1}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-o-transform:translate(0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.swiper-slide{display:block;-webkit-flex-shrink:0;-ms-flex:0 0 auto;flex-shrink:0;width:100%;height:100%;position:relative}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s;-moz-transition:.3s;-o-transition:.3s;transition:.3s;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-container-horizontal>.swiper-pagination{bottom:10px;left:0;width:100%}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;margin:0 2px;border-radius:100%;background:#fff}.swiper-pagination-bullet-active{background-color:#f80!important}body{font-size:1.1rem}h2,h3{font-weight:normal}.nav-item a::before,.history .del,.popBox li a::before,.head .operate a,#comment .fb,.search-text,.reset-btn,.list-ul .author,.searBtn a::before,.search-btn,.change-btn{background:url(blic/images/index-ico.png) no-repeat;background-size:30px auto}.img-focus .swiper-container1{height:150px}.img-focus .picauto-box{position:relative;width:100%;overflow:hidden}.img-focus .swiper-container3,.picauto-box .swiper-container2{width:100%;height:100%;overflow:hidden}.img-focus .swiper-container3 img,.picauto-box .swiper-container2 img{width:100%}.img-focus img{width:100%;height:100%}.img-focus .swiper-pagination{z-index:999;height:10px;line-height:10px;width:100px;margin:0 auto}.img-focus .swiper-pagination-bullet{line-height:10px;background:0;opacity:1!important;width:8px;height:8px;margin:0 2px;background-color:#fff}.img-focus .swiper-pagination-bullet-active{background:#ed4259!important}.nav-item{padding:10px;background:#fff;display:-moz-box;display:-webkit-box;display:box}.nav-item a{display:block;text-align:center;-moz-box-flex:1;-webkit-box-flex:1;box-flex:1}.nav-item a::before{content:"";display:block;width:50px;height:50px;margin:0 auto 3px;background-size:100% auto;border-radius:50%}.nav-item a:nth-child(1)::before,.popBox ul li:nth-child(1) a::before{background-position:center 10px;background-color:#45c4e7}.nav-item a:nth-child(2)::before,.popBox ul li:nth-child(2) a::before{background-position:center -26px;background-color:#f5990a}.nav-item a:nth-child(3)::before,.popBox ul li:nth-child(3) a::before{background-position:center -64px;background-color:#00c196}.nav-item a:nth-child(4)::before,.popBox ul li:nth-child(4) a::before{background-position:center -100px;background-color:#edc525}.searBtn{padding:10px;background:#fff}.searBtn a{display:block;line-height:30px;text-align:center;color:#666;border:1px solid #d6d6d6;border-radius:3px}.searBtn a::before{content:"";position:relative;top:5px;display:inline-block;width:20px;height:20px;margin-right:5px;background-position:0 -113px;background-size:25px auto}.search-enter{margin:10px}.search-enter .search-btn{width:100%;background:0}.hd{padding:15px}.hd h2,.hd h3{height:18px;line-height:18px;padding-left:8px;font-size:1.3rem;color:#000;font-weight:normal;border-left:3px solid #ed4259}.module ul{padding:0 0 15px 0;*zoom:1;white-space:nowrap;font-size:0}.module li{display:inline-block;vertical-align:top;white-space:normal}.module li a{display:block;width:66px}.module li img{display:block;width:66px;height:88px;box-shadow:0 1px 3px rgba(0,0,0,.3)}.module li p{height:20px;line-height:20px;font-size:1.1rem;overflow:hidden;color:#969ba3;white-space:nowrap;text-overflow:ellipsis}.module li span{display:block;height:20px;line-height:20px;overflow:hidden;margin-top:6px;color:#000;font-size:1.1rem;white-space:nowrap;text-overflow:ellipsis}.scroll ul{padding:0 15px 15px 15px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.scroll li a{margin-right:15px}.scroll li:last-child a{margin-right:0}::-webkit-scrollbar{display:none}.head{position:relative;text-align:center;background:#fff;border-bottom:1px solid #f0f1f2}.operate{position:absolute;z-index:0;width:96px}.sy-nav{margin-right:90px;height:45px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;font-size:1.3rem}.sy-nav h1{display:inline;font-weight:normal}.operate{right:6px;top:8px}.operate a{float:left}.head .operate a,.search-btn{display:block;width:32px;height:30px;overflow:hidden;text-indent:-999px;background-position:5px -228px}.head .operate .gohome{background-position:6px -343px;background-size:32px auto}.popBox{position:relative;position:fixed;z-index:888;top:46px;right:0;bottom:0;left:0;visibility:hidden;overflow:hidden;transition:visibility .25s;-wekit-transition:visibility .25s}.current.popBox{visibility:visible;transition:none;-wekit-transition:none}.popBox ul{position:relative;z-index:2;background:#fff}.popBox ul{padding:10px 0;background:#fff;overflow:hidden}.popBox ul li{float:left;width:25%;line-height:20px;text-align:center}.popBox ul li a{display:block;color:#000}.popBox ul li a::before{content:"";display:block;width:50px;height:50px;margin:0 auto 3px;background-size:100% auto;border-radius:50%}.menu_handle{border:0;width:20px;height:20px;padding:0;outline:0;position:absolute;top:4px;right:5px;z-index:2000}.menu_handle::before,.menu_handle::after,.menu_handle span{background:#666}.menu_handle::before,.menu_handle::after{content:'';position:absolute;height:1px;width:100%;left:0;top:70%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transition:-webkit-transform .25s;transition:transform .25s}.menu_handle span{position:absolute;width:100%;height:1px;left:0;top:11px;overflow:hidden;text-indent:200%;-webkit-transition:opacity .25s;transition:opacity .25s}.menu_handle::before{top:70%;-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}.menu_handle::after{top:40%;-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}.close.menu_handle span{opacity:0}.close.menu_handle::before{top:50%;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg)}.close.menu_handle::after{top:50%;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg)}.recentread{padding:10px;line-height:30px;font-size:1.3rem;display:-moz-box;display:-webkit-box;display:box}.recentread p,.recentread span{-moz-box-flex:1;-webkit-box-flex:1;box-flex:1}.recentread span{margin-right:15px;color:#ff5c4d}.recentread p{height:30px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#555}.recentread b{margin-right:10px}.recentread p a{display:inline-block;color:#555}.userLogin,.head .operate .userLogin,.bookBtn,.head .operate .bookBtn,.addBook:before,#read-head .addBook{background:url(../images/center.png) no-repeat;background-size:26px auto}.home-head .operate a{display:block;width:32px;height:30px}.home-head .operate{width:auto}.userLogin,.head .operate .userLogin{background-position:center -55px;background-size:22px auto}.userLogin img{width:28px;height:28px;border-radius:50%}.home-head .bookBtn,.head .operate .bookBtn{background-position:center -31px}#read-head .userLogin{background-position:center -301px}#read-head .bookBtn{background-position:0 -322px}.recom ul{margin:0 5px}.recom li{width:25%}.recom li a{margin:0 auto;padding:0}.recom li:last-child a{padding:0}#sNav{padding:10px;height:30px;border-bottom:1px solid #f0f1f2}#sNav a{display:inline-block;float:left;width:20%;height:24px;line-height:25px;margin:2px 0 0 0;text-align:center;font-size:1.2rem;border:1px solid #fff;border-radius:15px;box-sizing:border-box}#sNav a.active{border-color:#ed4259;color:#ed4259}.listBox{padding-bottom:20px}.list-ul li{height:90px;padding:15px;border-bottom:1px solid #f0f1f2}.list-ul li a{display:block;height:90px;overflow:hidden}.list-ul li img{width:66px;height:88px;float:left;margin-right:10px}.list-ul li .tit{display:block;height:22px;line-height:22px;margin-bottom:5px;overflow:hidden;font-size:1.25rem;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.list-ul li .desc{height:36px;line-height:18px;margin-bottom:7px;font-size:1.2rem;color:#969ba3;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;display:-webkit-box}.list-ul li .info p span{display:inline-block;margin-right:3px;padding:0 3px;color:#999;font-size:.8rem;border:1px solid #dedede}.list-ul li .info p span:nth-child(2){color:#f00}.list-ul li .info span:nth-child(3){color:#4284ed;margin-right:0}.list-ul li .info{display:-moz-box;display:-webkit-box;display:box}.list-ul li .info p,.list-ul li .info .author{-moz-box-flex:1;-webkit-box-flex:1;box-flex:1}.list-ul li .info p{height:20px;overflow:hidden;text-align:right}.list-ul li .time{display:none}.list-ul .author{height:18px;line-height:18px;padding-left:18px;overflow:hidden;display:block;background-position:0 -146px;background-size:22px auto;color:#999}.getMore span{display:block;line-height:40px;margin:10px 20px 0;font-size:1.2rem;background:#f6f7f9;color:#969ba3;text-align:center}#rInfo{padding:15px;overflow:hidden}#rInfo img{float:left;width:84px;height:112px;margin:0 10px 15px 0}#rInfo h2{height:30px;line-height:30px;overflow:hidden;font-size:1.3rem;font-weight:bold}#rInfo p{line-height:24px;height:24px;overflow:hidden;font-size:1.1rem}#rInfo .btns{clear:left;display:-webkit-box}#rInfo .btns a{display:block;height:32px;line-height:32px;text-align:center;font-size:1.2rem;border-radius:3px;border:1px solid #e3e4e6}#rInfo .btns a:not(:nth-child(3)){-webkit-box-flex:1}#rInfo .btns .freeBook{background-color:#ed4259;color:#fff;border-color:#ed4259}#rInfo .btns .addToBookshelf{display:none}#rInfo .del p:last-child span:nth-child(2){margin:0 6px;padding:0 6px;border-left:1px solid #ddd;border-right:1px solid #ddd}#rInfo .author span{display:inline-block;height:14px;line-height:15px;overflow:hidden;margin-left:3px;padding:0 3px;background:#4284ed;color:#fff;font-size:10px;margin:auto 6px}#rIntro{padding:0 15px;line-height:24px;font-size:1.2rem}#rIntro .more{margin-top:10px;text-align:center;background:#f6f6f6}#rIntro .arrow{display:inline-block;line-height:36px}#rIntro .arrow::before{content:"";position:relative;top:-2px;display:inline-block;width:10px;height:10px;margin-right:8px;border-top:1px solid #969ba3;border-left:1px solid#969ba3;-webkit-transform:rotateZ(135deg);transform:rotateZ(225deg)}#rIntro .arrow.arr-top::before{top:4px;border:0;border-bottom:1px solid #969ba3;border-right:1px solid#969ba3}#rIntro .readMore,#rIntro .nextPage{margin-top:10px;line-height:32px;background:#ed4259;color:#fff;text-align:center;border-radius:3px}#rIntro .readMore a,#rIntro .nextPage a{display:block;color:#fff}#rIntro p{margin-bottom:15px}#rIntro .introTit{margin-bottom:10px;font-size:1.5rem;color:#ed4259}#rIntro img{display:block;width:auto;max-width:320px;height:auto;margin:5px auto}#rIntro strong{font-weight:bold}.keyText{padding-bottom:15px}.keyText p{line-height:24px;font-size:1.2rem}.rank{position:relative}.rank .tab-nav{margin:0;padding:0;width:15rem;position:absolute;right:-1rem;top:-3.8rem}.rank .tab-nav span{border:none!important;margin:0;padding:0}.rank .tab-nav span.cur{color:#ed4259;font-weight:bold}.rank .list-ul li{border:0;border-top:1px solid #f0f0f0}.rank-ul li{position:relative;height:42px;line-height:42px;overflow:hidden;padding:0 15px;font-size:1.25rem;border-top:1px solid #f0f0f0;display:-webkit-box}.rank-ul i,.rank-ul a,.rank-ul span{-webkit-box-flex:1}.rank-ul li .cname{margin:0 8px 0 10px;padding-right:8px;border-right:1px solid #ddd}.rank-ul li i{display:inline-block;width:16px;height:18px;line-height:18px;text-align:center;background:#ccc;border-radius:3px}.rank-ul li .orgNum{background:#ed4259;color:#fff}.rank-ul li a:last-child{display:block}.rank .getMore{padding-bottom:10px}.rank .getMore span{margin-top:0}#comment .fb{display:block;color:#333;line-height:28px;padding:10px 5px 10px 46px;position:relative;margin:8px 10px 0 10px;background-position:8px -142px;background-size:45px auto;box-shadow:0 2px 1px #fff,inset 0 1px 1px rgba(138,138,138,0.2)}#comment #submit{margin-bottom:10px}#comment .button{height:32px;border:1px solid #ccc;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.06);-moz-box-shadow:0 1px 1px rgba(0,0,0,.06);box-shadow:0 1px 1px rgba(0,0,0,.06);cursor:pointer}#view-comment{position:absolute;z-index:3;padding:0 18rem 3rem 2rem}#view-comment .button{padding:0 20px}#view-comment header{height:auto}#comment #cancel{line-height:30px;text-align:center;vertical-align:top;height:30px;display:inline-block;background:#f7f7f7}#comment{padding-bottom:20px}#comment-list{margin:10px;font-size:12px}#comment-list li{padding:10px 2px;border-bottom:1px solid #e6e6e6;line-height:24px}#comment-list li:first-child{border-top:1px solid #e6e6e6}#comment-list li:last-child{border-bottom:0}#comment-list .user{color:#65bb0a;padding-right:100px;position:relative;margin-bottom:2px;height:24px;overflow:hidden}#comment-list .user time{position:absolute;right:0;top:0;color:#a6a6a6;width:66px;height:24px;overflow:hidden}#view-comment .button-status-complete{border-top:1px solid #e6e6e6;overflow:hidden;text-align:center;position:relative;display:none;padding:0;padding-top:15px}.w-text{margin:0 15px 15px;padding:8px 20px 0 0}#textarea{color:#666;background:#fff;border:1px solid #c5c5c5;width:96%;font-size:24px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.1) inset;height:80px;padding:5px 10px;line-height:32px;margin-left:2%;}.w-button{margin:0 15px}#submit{position:relative}#submit .button{float:left;width:47%;font-size:1rem;margin-left:2%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}#submit #verify{background:#ed4259;color:#fff;cursor:pointer}#submit #verify.disable{color:#999;background:#f7f7f7;border:1px solid #ccc;cursor:default}#rInfo .btns .goRead{margin-right:5px;background-color:#ffb31e;border-color:#ffb31e;color:#fff}#rInfo .btns .freeBook{margin-left:5px}#rIntro .summary-more{display:block;text-align:center}#rIntro .summary-more:after{content:'';display:inline-block;width:8px;height:8px;border-left:1px solid #656565;border-bottom:1px solid #656565;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}#moer-chapter{height:36px;line-height:36px;text-align:center;font-size:1.2rem;border-radius:3px;border:1px solid #e3e4e6;-webkit-box-flex:1;display:block;margin-top:10px}#moer-chapter a{display:block}.summary+.content+.nextPage{display:none}#bookCata .hd h2,#bookCata .hd h3{display:inline-block}#bookCata .hd p{float:right;color:#999}#chapter-list{padding:0 15px}#chapter-list li{height:42px;line-height:42px;border-bottom:1px solid #f0f1f2}#chapter-list li:last-child{border-bottom:0}#chapter-list li a{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#moer-chapter{margin:10px 15px}nav#tab{background:#fff;height:40px;line-height:40px;clear:both;display:-webkit-box;display:-moz-box;display:box}#tab span{font-size:1.1rem;font-weight:bold;-moz-box-flex:1.0;-webkit-box-flex:1.0;box-flex:1.0;display:block;text-align:center;cursor:pointer}nav#tab .cur{background:#fff;border-top:1px solid #ed4259;color:#ed4259}.jiaqun{margin-top:-8px;padding:0 15px 15px 15px}.jiaqun p{line-height:32px}.jiaqun p:first-child span{display:inline-block;margin:-2px 3px 0 0;width:38px;height:20px;line-height:20px;text-align:center;background:#ed4259;color:#fff;border-radius:15px}#qqqun{margin-top:-5px}#qqqun i,#wxqun i{display:inline-block;width:80px}#qqqun s{display:inline-block;margin:0 0 0 4px;width:78px;text-align:center;line-height:26px;background:#fffde8;border:1px dashed #e49878;color:#e49878}.jiaqun p img{vertical-align:middle;display:inline-block}#gongqun{margin:15px;clear:both;display:-webkit-box;display:-moz-box;display:box}#gongqun p{-moz-box-flex:1.0;-webkit-box-flex:1.0;box-flex:1.0;display:block;text-align:center;cursor:pointer;text-align:center}#gongqun p img{width:120px;height:120px;margin:0 auto}#gongqun p span,#gongqun p img,#gongqun p i{display:block}#rInfo .btns .addBook{display:inline-block;width:30px;height:34px;margin-left:10px;border:0;font-size:10px;line-height:12px;text-align:center}#rInfo .btns .addBook:before{content:'';display:block;width:30px;height:22px;overflow:hidden;background-size:20px auto;background-position:center -308px}#rInfo .btns .addBook.added:before{background-position:center -335px}#read-head .operate{width:64px}#read-head .addBook{display:none;background-position:center -354px;background-size:20px auto}#read-head .addBook.added{background-position:center -329px}#readJoin{position:relative}#readJoin span{font-size:.875rem;line-height:2.25rem;position:absolute;top:1.25rem;right:0;padding:0 .5rem 0 .75rem;-webkit-transition:color .15s,-webkit-transform .15s;transition:color .15s,transform .15s;-webkit-transform:translateX(100%);transform:translateX(100%);color:#fff;border-radius:3rem 0 0 3rem;background:rgba(0,0,0,.9)}.active>#readJoin span{-webkit-transform:translateX(0);transform:translateX(0)}.downApp{float:right;line-height:1.6rem;margin:8px;padding:0 .6rem;font-size:.8rem;border-radius:25px;color:#ab3d3a;border:#ab3d3a 1px solid}.addBook-tip{display:none;position:relative;width:86px;height:30px;line-height:30px;color:#fff;position:absolute;top:3.3rem;right:.328125rem;background:#333;border-radius:5px}.addBook-tip:after{content:"X";display:inline-block;float:right;width:20%;float:right;font-size:12px;font-weight:100;line-height:30px}.addBook-tip:before{content:"";position:absolute;top:-5px;right:10px;border-right:5px solid transparent;border-bottom:5px solid #333;border-left:5px solid transparent}.addBook-tip span{float:left;min-width:80%;text-align:center;display:inline-block;line-height:30px;font-size:12px}#fixTop{position:fixed;right:10px;bottom:80px;text-indent:-9999px;z-index:9999;width:38px;height:38px;background:rgba(0,0,0,0.6) url(images/index-ico.png) 6px -327px no-repeat;background-size:38px auto;border-radius:50%;display:none}body#chapter .title h2,#rs-chapter .title h2,body#chapter .title h3,#rs-chapter .title h3{font-size:1.4rem;height:50px;line-height:50px;border-bottom:1px solid #f0f1f2;text-align:center}body#chapter .title p,body#chapter .chapter-tit,#rs-chapter .title p,#rs-chapter .chapter-tit{line-height:42px;padding:0 15px}body#chapter .title p{font-size:1.25rem}body#chapter .title .sort{float:right}body#chapter .title .sort i{display:inline-block;padding:0 4px 0 10px}body#chapter .title .sort .active{color:#f00}body#chapter .chapter-tit,#rs-chapter .chapter-tit{background-color:#eee;margin:0 0 5px 0}#chapter-list.reverse,#chapter-list.reverse li{transform:rotate(180deg)}body.s-default{background-color:#c4b395;color:rgba(0,0,0,.85)}body.s-blue{background-color:#c3d4e6}body.s-green{background-color:#c8e8c8}body.s-light{background-color:#1a1a1a;color:rgba(255,255,255,.5)}body.s-dark{background-color:#fff}#readCover{background:#c4b395 url(../images/cover.jpg) no-repeat center;background-size:100% 100%;position:fixed;top:0;left:0;width:100%;height:100%}#readCover .c-gray{color:rgba(0,0,0,.4)!important}#readCover .c-v{position:absolute;top:16px;right:21px;bottom:16px;left:21px;text-align:center;border-top:1px solid rgba(0,0,0,.2);border-bottom:1px solid rgba(0,0,0,.2);white-space:nowrap}#readCover .c-v::after{display:inline-block;height:80%;content:'';vertical-align:middle}#readCover .c-h{position:absolute;top:21px;right:16px;bottom:21px;left:16px;border-right:1px solid rgba(0,0,0,.2);border-left:1px solid rgba(0,0,0,.2)}#readCover .c-cor::after,#readCover .c-cor::before{position:absolute;content:'';border:1px solid rgba(0,0,0,.2)}#readCover .c-cor::after{top:5px;left:5px;width:3px;height:3px;border-radius:0 1px 1px 1px}#readCover .c-cor::before{width:5px;height:5px;border-width:0 1px 1px 0}#readCover .c-cor{position:absolute;width:10px;height:10px;text-align:left}#readCover .c-cor:nth-of-type(1){top:-1px;left:-5px}#readCover .c-cor:nth-of-type(2){top:-1px;right:-5px;-webkit-transform:scaleX(-1);transform:scaleX(-1)}#readCover .c-cor:nth-of-type(3){right:-5px;bottom:-1px;-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}#readCover .c-cor:nth-of-type(4){bottom:-1px;left:-5px;-webkit-transform:scaleY(-1);transform:scaleY(-1)}#readCover .c-info{display:inline-block;width:100%;vertical-align:middle;white-space:nowrap}#readCover .c-figure{display:inline-block;padding:3px;border:1px solid #efece5;background-color:#fcfcfa}#readCover .c-img{display:block;width:8.625rem;height:11.5rem;-webkit-filter:grayscale(100%);filter:grayscale(100%)}#readCover .c-title{font-size:1.8rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:5px 0}#readCover .c-author{font-size:1.4rem}#readCover .c-data{font-size:1.25rem;width:100%;margin-top:3.25rem}#readCover .c-copy{font-size:1.2rem;position:absolute;right:0;bottom:30px;left:0}#readCover .c-data strong{font-weight:bold}.fleiList dl{padding:10px 15px}.fleiList dt{position:relative;height:40px;line-height:40px;border-bottom:1px solid #f0f1f2}.fleiList dt h2,.fleiList dt h3{line-height:40px;font-size:1.4rem}.fleiList dt h2 a,.fleiList dt h3 a{display:block}.fleiList dt span{margin-left:10px;font-size:1.0rem;color:#999}.fleiList dt .arrow-r{position:absolute;top:0;right:0}.fleiList dd a{display:inline-block;height:28px;line-height:28px;margin:12px 12px 0 0;padding:0 12px;color:#969ba3;border:1px solid #969ba3;border-radius:16px}.search{height:50px;background:#f6f7f9;position:relative;z-index:1}.search .fix{width:100%;position:fixed;top:0;left:0;z-index:9999;background:#f6f7f9}.sear-box{position:relative;height:30px;padding:10px;display:-webkit-box;display:box}.search-text{display:block;height:30px;padding:0 30px;background-color:#fff;background-position:5px -132px;-webkit-box-flex:1;box-flex:1}.cancel-btn{width:50px;line-height:30px;text-align:center;background:0;font-size:1.2rem}.reset-btn{display:none;position:absolute;top:10px;right:60px;width:30px;height:30px;text-indent:-999px;overflow:hidden;background-position:5px -168px;border:0}#auto-search{display:none;position:absolute;top:50px;overflow-y:scroll;width:100%;background:#fff;z-index:10000}#auto-search li{line-height:40px;margin:0 10px;font-size:1.2rem;border-bottom:1px solid #ddd}#auto-search li em{font-size:1.2rem;color:#f00}#auto-search a{display:block}.other-sear{margin-top:10px}.other-sear .change-btn{position:absolute;right:15px;top:5px;line-height:30px;padding-left:22px;color:#999;background-position:0 -391px}.history dt,.other-sear dt{position:relative}.history .del{position:absolute;right:15px;top:5px;height:30px;line-height:30px;padding-left:22px;font-size:1.2rem;color:#999;background-position:0 -285px}.searchBox h3{line-height:40px;padding-left:15px;font-size:1.3rem;font-weight:normal;color:#000}.searchBox dd{padding:6px 0 15px 15px}.other-sear a,.history a{display:inline-block;width:auto;-webkit-box-sizing:border-box}.other-sear dd span,.history dd span{display:block;height:28px;line-height:30px;margin:0 15px 12px 0;padding:0 10px;text-align:center;color:#969ba3;border:1px solid #969ba3;border-radius:16px}#result .tip{padding:30px 20px;text-align:center;font-size:1.2rem}#result .tip em{color:#f00}#search #getMore{display:none;height:40px;line-height:40px;text-align:center;color:#666}.map{padding:10px 0;background:#fff}.map-list .map .title{display:inline-block;width:80px;height:30px;line-height:30px;margin-bottom:10px;margin-left:10px;font-size:1.4rem;text-align:center;border-bottom:3px solid #ed4259}.map-list .map .title a{display:block}.map-list .map .title1{margin-left:10px;height:30px;line-height:30px;color:#65bb0a}.map-list .map-ul{overflow:hidden;margin-right:10px}.map-list li{width:25%;height:28px;overflow:hidden;float:left;text-align:center;margin-bottom:10px}.map-list li a{display:block;height:26px;line-height:26px;border:1px solid #ccc;background-color:#f6f6f6;margin-left:10px;border-radius:3px}@media screen and (max-width:320px){.img-focus .swiper-container1{height:128px}}@media screen and (min-width:376px) and (max-width:414px){.img-focus .swiper-container1{height:150px}}.onlineabs{position:relative}.onlineqq{position:absolute;right:20px;top:38px;background:url(../images/rfx.png) no-repeat 0 -1px;background-size:30px;margin-top:0;padding-left:30px;display:inline-block}.small_tip{width:20rem;height:30px;line-height:30px;padding:0 .5rem;text-align:center;font-size:1.2rem;background:rgba(0,0,0,0.5);position:fixed;top:35%;margin-left:-10rem;left:50%;border-radius:4px;color:#fff;display:none}.btns-widget{padding:0 1.25rem}[class^="btn-"]{text-align:center;display:inline-block;border:0;outline:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}[class^="btn-"].full{width:100%}[class^="btn-"][btn-size="large"]{height:3.3333rem;line-height:3.3333rem}.btn-primary{background-color:#ffb31e;height:2.9167rem;line-height:2.9167rem;color:#fff;font-size:1.3333rem;-moz-border-radius:.3333rem;-webkit-border-radius:.3333rem;border-radius:.3333rem}.btn-primary:visited,.btn-primary:hover{color:#fff}.btn-primary:active{background-color:#df8a42}.btn-primary[btn-size="medium"]{font-size:1.1667rem}.copyright{padding:1rem;font-size:.75rem;text-align:center;color:#888;line-height:1.5}.fanhuizhuye{margin-left:5rem}.zhuyetu{margin-left:35px}.summary text{height:6rem;overflow:hidden;display:inline-block}.mip-fixed-top{height:3.80rem;z-index:10010!important}#MIP-LLIGTBOX-MASK{top:3.80rem!important}.mip-vd-tabs-nav-selected{background:#fff!important;border-top:1px solid #ed4259!important;color:#ed4259!important;border-bottom:none!important}[data-clicked=true]{height:auto!important}[data-pinglun=true]{display:none!important}.inputText{margin-top:1rem}.mip-list-more{text-align:center;padding:1rem}style>
head>
<body id="down">
<mip-data>
<script type="application/json">
{
"clicked": false,
"pinglun": false
}
script>
mip-data>
<mip-vd-tabs>
<section class="wrap" id="comment">
<div class="hd">
<h3>网友评论h3>
div>
<div id="submit" class="post">
<mip-form url="{$host}/index.php?do=AddComment" method="post">
<textarea id="textarea" type="text">textarea>
<input name="BookId" type="hidden" id="id" value="{$book['Id']}" />
<input type="submit" class="button" value="提交">
<span id="cancel" class="button">取消span>
mip-form>
div>
section>
mip-vd-tabs>
<section class="wrap rank">
<div class="hd">
<h3>小说排行h3>
div>
<mip-vd-tabs>
<section class="tab-nav" id="rankings">
<span>人气排行span>
<span>最热排行span>
section>
<div>
<div class="cbox">
<mip-list template="mip-template-id" src="ajax后台的请求地址" id="mip-list"
has-more pnName="pn" pn=1 timeout="3000" preLoad >
<template type="mip-mustache" id="mip-template-id">
<div class="cbox">
<ul class="list-ul" id="bou">
<li>
<a href="/xs/20.html">
<div class="mip-div-63">
<mip-img src="{{Cover}}">mip-img>
div>
<div class="del">
<span class="tit">{{Name}}span>
<div class="desc">{{Description}}div>
<div class="info">
<span class="author">{{AuthorName}}span>
<p>
<span>{{CategoryName}}span>
<span>{{End}}span>
<span>{{WordNum}}万字span>
p>
div>
div>
a>
li>
ul>
div>
template>
mip-list>
<div class="mip-list-more" on="tap:mip-list.more"> 点击查看更多 div>
div>
div>
<div>
<div class="cbox">
<mip-list template="mip-template-id" src="ajax后台的请求地址" id="mia-list"
has-more pnName="pn" pn=1 timeout="3000" preLoad >
<template type="mip-mustache" id="mip-template-id">
<div class="cbox">
<ul class="list-ul" id="bou">
<li>
<a href="/xs/20.html">
<div class="mip-div-63">
<mip-img src="{{Cover}}">mip-img>
div>
<div class="del">
<span class="tit">{{Name}}span>
<div class="desc">{{Description}}div>
<div class="info">
<span class="author">{{AuthorName}}span>
<p>
<span>{{CategoryName}}span>
<span>{{End}}span>
<span>{{WordNum}}万字span>
p>
div>
div>
a>
li>
ul>
div>
template>
mip-list>
<div class="mip-list-more" on="tap:mia-list.more"> 点击查看更多 div>
div>
div>
mip-vd-tabs>
section>
<footer>
<div class="foot-nav">
<a href="/">首页a>
<a href="/list/">分类a>
<a href="/" >新书a>
<a href="/" >精品a>
<a href="/" >排行榜a>
div>
<div class="foot-b">
<a id="goTop" href="#">返回顶部a>
<div class="copyright">
*************************
div>
div>
footer>
<mip-cambrian site-id="***************">mip-cambrian>
<script src="https://c.mipcdn.com/extensions/platform/v1/mip-cambrian/mip-cambrian.js">script>
<script src="https://c.mipcdn.com/static/v1/mip.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-list/mip-list.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-mustache/mip-mustache.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-lightbox/mip-lightbox.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-vd-tabs/mip-vd-tabs.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-form/mip-form.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-bind/mip-bind.js">script>
<script src="https://c.mipcdn.com/static/v1/mip-stats-baidu/mip-stats-baidu.js">script>
<mip-stats-baidu token="*******************************">mip-stats-baidu>
script>
body>
html>
------------php 后台返回的数据格式-----------
$items = [['book'=>1,'ss'=>2],['book'=>2,'ss'=>3]];
$info['data'] = [
"items" => $items
];
return json_encode($info);
返回的数据应该是json格式 但是如果仅是上面这样处理 会出现access token \ time out \ callback 之类的错误 ,后端需要返回的一个回调函数,如下:
$callback = $_GET['callback'];
echo $callback.'('.json_encode($info).')';
//$_GET['callback'] 是前端的jsonp请求会发过来的回调函数名