html 单页面插件 【大屏幕_单页面模板】 自适应手机和电脑

黑衣人 简单就是美 关注 八级站长 VIP
发表于编程技术版块

可以做很多效果:关于,打赏,等各种页面。。。


ImageImageImageImage


【开始使用】:


1、下载安装html单页面插件

https://www.hadsky.com/read-384-1.html


2、插件后台>新建 单页面

Image




3、复制下边的单页面模板源码,粘贴,保存


	<?php
        $_G['TEMPLATE']['BODY']='output';
        $_G['SET']['WEBTITLE'] = '我是页面标题,方便被人搜索找到';
        $_G['SET']['WEBKEYWORDS'] = '页面关键字,方便被人搜索找到,多个用英文逗号隔开'; 
        $_G['SET']['WEBDESCRIPTION'] = '页面的详细描述,方便被人搜索找到';
	?>

<div class="pk-container " style="margin:auto;width: 970px;padding:50px 0;background-color:#fff;border-radius:5px"><!--width: 1270px;可改成自己模板宽度, 其他不要动-->


  
<!--这里是内容头 ,粘贴各种网页源码 ,这段可删除替换其他代码,其他的不要动。-->
<style type="text/css" media="screen">
.pk-heiyiren-xxbj{color:#333}
.pk-heiyiren-xxbj:hover{color:#0080FF;text-decoration:underline;}
</style> 
<a target="_blank" href="http://www.hadsky.com" ><div style="text-align:center" class="pk-heiyiren-xxbj" title="访问"> <h3>链接 hadsky </h3></div><a/>
<!--这里是内容尾-->
  
  
  
</div><!--不要动-->


设置如下


Image


4、点击返回列表页,打开那个 guanyu 的页面,效果如下


Image


5、插件伪静态,百度更容易搜到该页面】 把 以下代码,放根目录的 .htaccess 文件里(这里是apache服务器类型


RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^htmlpage-([0-9a-zA-Z_]+)\.html$ index\.php\?c=app&a=puyuetian_htmlpage:index&htmlname=$1&%1 [L]

6、则调用访问


http://你的域名/htmlpage-后台插件设置的页面名称.html


如 : http://www.baidu.com/htmlpage-guanyu.html     

评论列表 评论
明歌 明歌 二级站长 VIP 4#
Nginx 怎么设置伪静态?

简单就是美:
以前乐天发过,你官网搜 Nginx

共0条回复,点击查看回复
wolfman 爱域菌 七级站长 VIP 3#
emotion
共0条回复,点击查看回复
子杰丫 小杰博客 四级站长 普通 2#
666
共0条回复,点击查看回复
发布评论

评论: html 单页面插件 【大屏幕_单页面模板】 自适应手机和电脑

已有0次打赏
(6) 分享
分享

请保存二维码或复制链接进行分享

取消