我天,这个模板去做个大站首页有何不可!!!

2024-03-19 04:04

本文主要是介绍我天,这个模板去做个大站首页有何不可!!!,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在这个万物vue的年代,网页设计越来越框架化。

上网搜个资料学习学习吧,咵咵咵,“游泳健身,vue了解一下”

我只是想简单地学个html,js啊!怎么就这么复杂!

曾几何时,在网上找个网页模板,纯纯的html不带一点儿复杂的东西,最多加点儿jquery。我上面加个头就能当jsp的课后作业了。虽然这种东西已经过时。但是只是想做个作业而已。。。

或者,买个服务器,上面装个NGINX,或者tomcat,直接把模板往里一扔,我就直接有了一个小小的网站,不用配置什么后台。

但,首先,要有一个美美的模板!

但,首先,要有一个美美的模板!

但,首先,要有一个美美的模板!

那么,看看这个怎么样?

高端!

大气!

上档次!

关键还很简单!

咖啡色,高级,丝滑。

它只有一个页面,做一个小小的宣传站绰绰有余,稍作修改,添加些后台,做个个人博客也是美美哒。

有时候,也可以找到对应的位置,每个页面对应一个html网页,把它扒下来,学习学习人家是怎么写的,也是美滋滋。

就比如说咱导航啊,样式什么的。直接定位,十几行代码,哦,原来是这样。了解了基础原理再看vue那些精美的封装好的组件,就会有一种豁然开朗的感觉有木有!

来看看一个完整的页面

<!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" />
<title>Web Tech Template - Free CSS Layout</title>
<meta name="keywords" content="Web Tech Template, CSS, HTML" />
<meta name="description" content="Web Tech Template is a free CSS website provided from xxxx.com" />
<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{if (field.defaultValue == field.value) field.value = '';else if (field.value == '') field.value = field.defaultValue;
}
</script>
</head>
<body><div id="templatemo_header"><div id="site_title"><a href="http://www.xxxx.com" target="_parent">Technology Blog - Free CSS Template</a></div> <!-- end of site_title --><div id="header_right"><a href="#"><img src="images/templatemo_twitter.png" alt="twitter" /></a><a href="#"><img src="images/templatemo_rss.png" alt="rss" /></a><div id="newsletter_box"><form action="#" method="get"><input type="text" id="user" name="user" class="newsletter_email" value="Enter your email address"  onfocus="clearText(this)" onblur="clearText(this)" /><input style="font-weight: bold;" type="submit" name="submit" id="submit" value="" /></form></div></div><div class="cleaner"></div></div> <!-- end of header --><div id="templatemo_menu_wrapper"><div id="templatemo_menu"><ul><li><a href="#" class="current"><span></span>Home</a></li><li><a href="#"><span></span>Web 2.0</a></li><li><a href="http://www.xxxx.com" target="_parent"><span></span>CSS Templates</a></li><li><a href="#"><span></span>Graphics</a></li><li><a href="#" target="_parent"><span></span>Inspirations</a></li><li><a href="#" target="_parent"><span></span>Flash Files</a></li></ul>    	</div>
</div> <!-- end of templatemo_menu --><div id="templatemo_main"> <span class="tm_bottom"></span><div id="templatemo_content"><div class="content_box"><h1>Short Info of <span>Web Tech Blog</span></h1><p>Vivamus a massa. Donec iaculis felis id neque. Praesent varius egestas velit. Donec a massa ut pede pulvinar vulputate. Nulla et augue. Sed eu nunc quis pede tristique suscipit. Nam sit amet justo vel libero tincidunt dignissim. Cras magna velit, pellentesque mattis, faucibus vitae, feugiat vitae, sapien.  Fusce ac orci sit amet velit ultrices condimentum. Integer imperdiet odio ac eros. Ut id massa. Nullam nunc. Vivamus sagittis varius lorem.</p></div><div class="post_box"><div class="header"><h2><a href="#">Cum sociis natoque penatibus et magnis</a></h2><div class="tag"><strong>Tags:</strong> <a href="#">Photography</a>, <a href="#">Free Photos</a>, <a href="#">HDR</a></div><span class="posted_date">25 Feb<strong>2010</strong></span></div><img src="images/templatemo_image_01.jpg" alt="image" /><div class="pb_right"><p>Praesent mattis varius quam. Vestibulum ullamcorper ipsum nec augue. Vestibulum auctor odio eget ante. Nunc commodo, magna pharetra semper vehicula, dui ligula feugiat elit, et euismod nunc orci ut libero. Etiam sodales massa vel metus. Mauris et elit quis mauris aliquet luctus.</p><div class="comment"><a href="#">Comment</a></div></div><div class="cleaner"></div></div><div class="post_box"><div class="header"><h2><a href="#">Quisque dictum pharetra neque</a></h2><div class="tag"><strong>Tags:</strong> <a href="#">Photography</a>, <a href="#">Free Photos</a>, <a href="#">Royalty</a></div><span class="posted_date">25 Feb<strong>2010</strong></span></div><img src="images/templatemo_image_02.jpg" alt="image" /><div class="pb_right"><p>Aliquam pretium porta odio. Fusce quis diam sit amet tortor luctus pellentesque. Donec accumsan urna non elit tristique mattis. Vivamus fermentum orci viverra nisl. In nec magna id ipsum aliquam dictum. Donec euismod enim et risus. Nunc dictum, massa non dignissim commodo, metus quam vehicula lorem, et dignissim enim augue vitae pede. D</p><div class="comment"><a href="#">Comment</a></div></div><div class="cleaner"></div></div><div class="post_box"><div class="header"><h2><a href="#">Quisque dictum pharetra neque</a></h2><div class="tag"><strong>Tags:</strong> <a href="#">Flash</a>, <a href="#">Free Files</a>, <a href="#">AS3</a></div><span class="posted_date">25 Feb<strong>2010</strong></span></div><img src="images/templatemo_image_02.jpg" alt="image" /><div class="pb_right"><p>Curabitur eleifend congue leo. Donec a purus vel purus sollicitudin placerat. Nunc at sem. Sed pellentesque placerat augue. Mauris pede nisl, placerat nec, lobortis vitae, dictum sed, neque.</p><div class="comment"><a href="#">Comment</a></div></div><div class="cleaner"></div></div><div class="post_box pb_last"><div class="header"><h2><a href="#">Mauris quis nulla sed ipsum pretium sagittis</a></h2><div class="tag"><strong>Tags:</strong> <a href="#">HTML</a>, <a href="#">Free Templates</a>, <a href="#">CSS</a></div><span class="posted_date">25 Feb<strong>2010</strong></span></div><img src="images/templatemo_image_03.jpg" alt="image" /><div class="pb_right"><p>Quisque in diam a justo condimentum molestie. Vivamus a velit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur quis velit quis tortor tincidunt aliquet. Vivamus leo velit, convallis id, ultrices sit amet, tempor a, libero.</p><div class="comment"><a href="#">Comment</a></div></div><div class="cleaner"></div></div></div><div id="templatemo_sidebar"><div class="sidebar_box"><h3>Tag Cloud</h3><div class="sb_content"><a href="#" style="font-size:12px">Aenean</a> <a href="#" style="font-size:11px">Cursus</a> <a href="#" style="font-size:16px">Maecenas</a> <a href="#" style="font-size:11px">Aliquam Ligula</a> <a href="#" style="font-size:20px">Egestas</a> <a href="#" style="font-size:16px">Suscipit</a> <a href="#" style="font-size:12px">Sapien</a> <a href="#" style="font-size:28px">Dignissim</a> <a href="#" style="font-size:14px">Vestibulum</a> <a href="#" style="font-size:12px">Lorem</a> <a href="#" style="font-size:14px">Urnain</a> <a href="#" style="font-size:20px">Neque</a> <a href="#" style="font-size:12px">Aenean</a></div></div><div class="sidebar_box"><h3>Categories</h3><div class="sb_content"><ul class="sidebar_menu"><li><a href="#">CSS Techniques</a></li><li><a href="#">Web Design Tips</a></li><li><a href="#">Best Wallpapers</a></li><li><a href="#">Free Fonts</a></li><li><a href="#">Photoshop Tutorials</a></li><li><a href="#">3D Animation Tutorials</a></li></ul></div></div><div class="sidebar_box"><h3>Archives</h3><div class="sb_content"><ul class="sidebar_menu"><li><a href="#">CSS Templates</a></li><li><a href="#">Web Design Ideas</a></li><li><a href="#">Free Wallpapers</a></li><li><a href="#">Free Pixel Fonts</a></li><li><a href="#">Illustrator Tutorials</a></li><li><a href="#">3D Character Tutorials</a></li></ul></div></div><div class="sidebar_box"><h3>Our Friends</h3><div class="sb_content"><ul class="sidebar_menu"><li><a href="#" target="_parent">Free Flash Files</a></li><li><a href="http://www.xxxx.com" target="_parent">xxxx</a></li><li><a href="#/blog" target="_blank">Web Design Tips</a></li><li><a href="#" target="_blank">Flash XML Galleries</a></li><li><a href="#" target="_blank">Inspiring Flash Websites</a></li></ul></div></div></div><div class="cleaner"></div>
</div> <!-- end of main --><div id="templatmeo_bottom"><div class="bottom_box"><h5><span>Sed Necest</span> Suspendisse a nibh</h5><p>Duis vitae velit sed dui malesuada dignissim. Donec mollis aliquet ligula. Maecenas adipiscing elementum ipsum.</p><a href="#" class="continue">more info</a></div><div class="bottom_box"><h5><span>Lorem ipsum</span> dolor sit amet</h5><p>Vestibulum eleifend, enim ut molestie pulvinar, purus est fringilla augue, ut tristique nunc neque a libero.</p><a href="#" class="continue">more info</a></div><div class="bottom_box"><h5><span>Recent</span> Blog Post</h5><ul class="bottom_box_list"><li><a href="#">Duis vitae velit sed lesuada dignissim.</a></li><li><a href="#">Donec mollis aliquet ligula.</a></li><li><a href="#">Maecenas adipiscing elementum ipsum.</a></li></ul></div></div> <!-- end of bottom --><div id="templatemo_footer"><ul class="footer_menu"><li class="first"><a href="#">Home</a></li><li><a href="#">Web 2.0</a></li><li><a href="#">Wordpress</a></li><li><a href="#">Graphics</a></li><li><a href="#">Inspirations</a></li><li><a href="#">Freebies</a></li></ul>Copyright © 2048 <a href="#">Your Company Name</a> | from <a href="http://www.xxxx.com" target="_parent">xxxx</a> | Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
</body>
</html>

再来看看css

/*
Credit: http://www.moobnn.com
*/body {margin: 0px;padding: 0px;color: #b9b9b9;font-family: Tahoma, Geneva, sans-serif;font-size: 12px;line-height: 1.5em; background-color: #ccc;background-image: url(../images/templatemo_body.jpg);background-repeat: repeat;
}a, a:link, a:visited { color: #da9d0c; font-weight: bold; text-decoration: underline; }
a:hover { color: #99FF00; text-decoration: none; }p { margin: 0px; padding: 0; }
img { border: none; }ul { margin: 0; padding: 0; }
ul li { margin: 0; padding: 0; }h1, h2, h3, h4, h5, h6 { color: #000; }
h1 { font-size: 30px; font-weight: normal; margin: 0 0 20px 0; padding: 5px 0; color: #9b9b9b; }
h2 { font-size: 24px; font-weight: normal; margin: 0 0 20px 0; padding: 10px 0 15px 0; color: #fff; }
h3 { font-size: 20px; font-weight: normal; margin: 0 0 15px 0; padding: 0; padding: 0 0 10px 0; }
h4 { font-size: 18px; margin: 0 0 20px 0; padding: 0 0 10px 0; ; }
h5 { font-size: 16px; margin: 0 0 10px 0; padding: 0; }
h6 { font-size: 14px; margin: 0 0 5px 0; padding: 0; }.cleaner { clear: both; width: 100%; height: 0px; font-size: 0px;  }
.cleaner_h10 { clear: both; width:100%; height: 10px; }
.cleaner_h20 { clear: both; width:100%; height: 20px; }
.cleaner_h30 { clear: both; width:100%; height: 30px; }
.cleaner_h40 { clear: both; width:100%; height: 40px; }
.cleaner_h50 { clear: both; width:100%; height: 50px; }
.cleaner_h60 { clear: both; width:100%; height: 60px; }.hr_divider { background: url(../images/templatemo_hr_divider.jpg) bottom repeat-x; }.float_l { float: left; }
.float_r { float: right; }.image_wrapper { display: inline-block; padding: 4px; border: 1px solid #666; background: none; margin-bottom: 10px; }
.image_fl { float: left; margin: 3px 15px 0 0; }
.image_fr { float: right; margin: 3px 0 0 15px; }blockquote { font-style: italic; margin-left: 10px;}
cite { font-weight: bold; color:#3b3823; }
cite span { color: #696443; }
em { color: #e55822; }a.continue { color: #F00; font-weight: bold; text-decoration: none; }#templatemo_header {width: 1024px;padding: 0;margin: 0 auto 20px auto;}#site_title {float: left;width: 500px;height: 160px;font-family: Georgia, "Times New Roman", Times, serif;
}#site_title a {display: block;width: 500px;height: 30px;margin: 0px;padding: 130px 0px 0 170px;font-size: 14px;color: #ffffff;font-weight: normal;text-decoration: none;background: url(../images/templatemo_logo.png) no-repeat top left;	
}#header_right {float: right;width: 260px;padding-top: 30px;text-align: right;
}#newsletter_box {width: 260px;padding: 28px 0 0 0;margin-top: 30px;background: url(../images/templatemo_newsletter.png) top left no-repeat;
}#newsletter_box form { width: 260px; padding: 0; margin: 0; }
#newsletter_box form .newsletter_email { color: #333; width: 180px; height: 22px; border: 1px solid #333; background: none; padding: 0 5px; }
#newsletter_box form #submit { width: 63px; height:23px; background: url(../images/templatemo_subscribe_btn.png) no-repeat; border: none; cursor: pointer; }/* menu */#templatemo_menu_wrapper {clear: both;width: 100%;height: 50px;background: url(../images/templatemo_menu_wrapper.jpg) repeat-x;
}#templatemo_menu {width: 984px;height: 50px;padding: 0 20px;margin: 0 auto;background: #262626;
}#templatemo_menu ul {height: 33px;margin: 0;padding: 8px 0 0 0;list-style: none;
}#templatemo_menu ul li {padding: 0;margin: 0;display: inline-block;
}#templatemo_menu ul li a {position: relative;float: left;display: block;height: 26px;padding: 7px 28px;font-size: 15px;color: #fff;	text-decoration: none;font-weight: normal;text-align: center;outline: none;
}#templatemo_menu ul li a:hover, #templatemo_menu ul .current {color: #fff;background: url(../images/templatemo_menu_right.jpg) no-repeat top right;
}#templatemo_menu ul li a:hover span, #templatemo_menu ul .current span {position: absolute;top: 0;left: 0;width: 5px;height: 33px;background: url(../images/templatemo_menu_left.jpg) no-repeat;
}#register_box {float: right;width: 200px;color: #fff;font-size: 11px;padding-top: 10px;
}#register_box .signup { color:#F00; font-weight: bold; text-decoration: none; }
#register_box .new_reg { color:#be6300; font-weight: bold; text-decoration: none; }
/* end of menu *//* main */#templatemo_main {clear: both;position: relative;width: 964px;padding: 0 30px 50px;margin: 0 auto;background: #272727 url(../images/templatemo_content_top.jpg) top no-repeat;
}#templatemo_main .tm_bottom {position: absolute;width: 1024px;height: 60px;bottom: 0;left: 0;background: url(../images/templatemo_content_bottom.jpg) no-repeat;	 
}#templatemo_content {float: left;width: 600px;padding: 30px 30px 30px 0;border-right: 1px dashed #363636;
}#templatemo_content h1 span {color: #20c4d3;
}.content_box {padding-bottom: 30px;margin-bottom: 30px;border-bottom: 1px dashed #363636;	
}.post_box {clear: both;padding-bottom: 30px;margin-bottom: 30px;border-bottom: 1px dashed #363636;	
}.pb_last { margin: 0; padding: 0; border: none; }.post_box .header {position: relative;margin-bottom: 10px;
}.header a { color: #FFFFFF; font-weight: normal; text-decoration: none; }
.header a:hover { color: #999999; }.header .tag { font-size: 11px; color: #999999; }
.header .tag a { font-size: 11px; color: #666666; }
.header .tag a:hover { color: #CCCCCC; }.header h2 { margin: 0; padding: 5px 0; }
.header .posted_date { position: absolute; font-size: 11px; color: #2b2b2b; top: 0; right: 0; width: 45px; height: 45px; padding: 8px 3px 0 0; text-align: center; background:url(../images/templatemo_date.jpg) no-repeat;
}
.header .posted_date strong { display: block; margin-top: 5px; }.post_box img { width: 108px; height: 108px; border: 5px solid #fff; float: left; margin-right: 30px; }
.post_box .pb_right { float: right; width: 450px; }
.post_box .comment a { display: block; margin-top: 15px; background: url(../images/templatemo_comment.jpg) no-repeat bottom left; padding: 3px 0 0 25px; }#templatemo_sidebar {float: right;width: 280px;
}.sidebar_box {clear: both;
}.sidebar_box h3 {width: 190px;height: 38px;margin: 0;padding: 42px 0 0 90px;color: #fff;background: url(../images/templatemo_site_header.png) no-repeat left top;;
}.sidebar_box a { text-decoration: none; color: #b9b9b9; }.sidebar_box .sb_content {padding: 20px;
}.sidebar_menu { margin: 0; padding: 0; list-style: none; }
.sidebar_menu li { margin: 0 0 5px 0; padding: 3px 0; border-bottom: 1px solid #303030 }
.sidebar_menu li a { text-decoration: none; font-size: 11px; font-weight: normal; background: url(../images/templatemo_list.jpg) no-repeat top left; display: block; padding-left: 20px;}
.sidebar_menu li a span { color: #f00; }/* end of main *//* bottom */#templatmeo_bottom {clear: both;width: 1024px;height: 168px;margin: 0 auto;padding: 40px 0 0;background: url(../images/templatemo_footer.jpg) no-repeat;
}.bottom_box {float: left;margin-left: 20px;width: 256px;padding: 20px 20px 0;background: url(../images/templatemo_footer_box.png) no-repeat;
}.bottom_box h5 {color: #b3b3b3;
}.bottom_box h5 span {color: #26c6d5;
}.bottom_box a.continue {font-weight: normal;float: right;color: #26c6d5;
}.bottom_box_list { margin: 20px 0; padding: 0; list-style: none; }
.bottom_box_list li { background: url(../images/templatemo_footer_list.png) no-repeat scroll 0 3px; margin: 0 0 10px; padding: 0 0 3px 15px; 	line-height: 1em; }
.bottom_box_list li a { color: #8e8e8e; text-decoration: underline; font-weight: normal; }
.bottom_box_list li a:hover { text-decoration: none; }/* end of bottom *//* footer */#templatemo_footer {clear: both;width: 1024px;margin: 0 auto;padding: 10px 0;color: #999999;text-align: center;
}#templatemo_footer a { color: #999999; font-weight: normal; }#templatemo_footer .footer_menu { margin: 0 0 5px 0; padding: 0; list-style: none; }
#templatemo_footer .footer_menu li { margin: 0; padding: 0 5px; list-style: none; border-left: 1px solid #6b6b6b; display: inline-block; }
#templatemo_footer .footer_menu .first { border: none; }
#templatemo_footer .footer_menu li a { color: #6b6b6b; font-size: 11px; }
#templatemo_footer .footer_menu li a:hover { color: #fff; }/* end of footer */

是不是很适合学习!!!

真是绝绝子

有需要的亲们可以直接下载:

安排!!

https://download.csdn.net/download/qqhxmdq/88987095

这篇关于我天,这个模板去做个大站首页有何不可!!!的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/824730

相关文章

poj3468(线段树成段更新模板题)

题意:包括两个操作:1、将[a.b]上的数字加上v;2、查询区间[a,b]上的和 下面的介绍是下解题思路: 首先介绍  lazy-tag思想:用一个变量记录每一个线段树节点的变化值,当这部分线段的一致性被破坏我们就将这个变化值传递给子区间,大大增加了线段树的效率。 比如现在需要对[a,b]区间值进行加c操作,那么就从根节点[1,n]开始调用update函数进行操作,如果刚好执行到一个子节点,

C++11第三弹:lambda表达式 | 新的类功能 | 模板的可变参数

🌈个人主页: 南桥几晴秋 🌈C++专栏: 南桥谈C++ 🌈C语言专栏: C语言学习系列 🌈Linux学习专栏: 南桥谈Linux 🌈数据结构学习专栏: 数据结构杂谈 🌈数据库学习专栏: 南桥谈MySQL 🌈Qt学习专栏: 南桥谈Qt 🌈菜鸡代码练习: 练习随想记录 🌈git学习: 南桥谈Git 🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈�

poj 1258 Agri-Net(最小生成树模板代码)

感觉用这题来当模板更适合。 题意就是给你邻接矩阵求最小生成树啦。~ prim代码:效率很高。172k...0ms。 #include<stdio.h>#include<algorithm>using namespace std;const int MaxN = 101;const int INF = 0x3f3f3f3f;int g[MaxN][MaxN];int n

uva 1342 欧拉定理(计算几何模板)

题意: 给几个点,把这几个点用直线连起来,求这些直线把平面分成了几个。 解析: 欧拉定理: 顶点数 + 面数 - 边数= 2。 代码: #include <iostream>#include <cstdio>#include <cstdlib>#include <algorithm>#include <cstring>#include <cmath>#inc

uva 11178 计算集合模板题

题意: 求三角形行三个角三等分点射线交出的内三角形坐标。 代码: #include <iostream>#include <cstdio>#include <cstdlib>#include <algorithm>#include <cstring>#include <cmath>#include <stack>#include <vector>#include <

poj 2104 and hdu 2665 划分树模板入门题

题意: 给一个数组n(1e5)个数,给一个范围(fr, to, k),求这个范围中第k大的数。 解析: 划分树入门。 bing神的模板。 坑爹的地方是把-l 看成了-1........ 一直re。 代码: poj 2104: #include <iostream>#include <cstdio>#include <cstdlib>#include <al

最大流、 最小费用最大流终极版模板

最大流  const int inf = 1000000000 ;const int maxn = 20000 , maxm = 500000 ;struct Edge{int v , f ,next ;Edge(){}Edge(int _v , int _f , int _next):v(_v) ,f(_f),next(_next){}};int sourse , mee

C++语法知识点合集:11.模板

文章目录 一、非类型模板参数1.非类型模板参数的基本形式2.指针作为非类型模板参数3.引用作为非类型模板参数4.非类型模板参数的限制和陷阱:5.几个问题 二、模板的特化1.概念2.函数模板特化3.类模板特化(1)全特化(2)偏特化(3)类模板特化应用示例 三、模板分离编译1.概念2.模板的分离编译 模版总结 一、非类型模板参数 模板参数分类类型形参与非类型形参 非类型模板

Smarty模板引擎工作机制(一)

深入浅出Smarty模板引擎工作机制,我们将对比使用smarty模板引擎和没使用smarty模板引擎的两种开发方式的区别,并动手开发一个自己的模板引擎,以便加深对smarty模板引擎工作机制的理解。 在没有使用Smarty模板引擎的情况下,我们都是将PHP程序和网页模板合在一起编辑的,好比下面的源代码: <?php$title="深处浅出之Smarty模板引擎工作机制";$content=

Smarty模板执行原理

为了实现程序的业务逻辑和内容表现页面的分离从而提高开发速度,php 引入了模板引擎的概念,php 模板引擎里面最流行的可以说是smarty了,smarty因其功能强大而且速度快而被广大php web开发者所认可。本文将记录一下smarty模板引擎的工作执行原理,算是加深一下理解。 其实所有的模板引擎的工作原理是差不多的,无非就是在php程序里面用正则匹配将模板里面的标签替换为php代码从而将两者