分享一个美美的html模板

2024-01-19 12:12

本文主要是介绍分享一个美美的html模板,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

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

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

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

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

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

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

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

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

那么,看看这个怎么样?

高端!

大气!

上档次!

关键还很简单!

白色,高级,丝滑。

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

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

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

来看看一个完整的页面

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="description" content="Your description goes here" /><meta name="keywords" content="your,keywords,goes,here" /><meta name="author" content="Your Name" /><link rel="stylesheet" type="text/css" href="1024px.css" title="1024px" media="screen,projection" /><title>1024px v3.0</title>
</head><body>
<div id="wrap"><div id="header"><p id="toplinks">Skip to: <a href="#content">Content</a> | <a href="#sidebar">Navigation</a> | <a href="#footer">Footer</a></p><h1><a href="index.html">1024<span class="fade">px</span> v3.0</a></h1><p id="slogan">a free website template by Andreas Viklund</p></div><div id="content"><h2>General information</h2><p class="timestamp">10 Jun, 2010 | Category: <a href="#">Sample</a> | Author: <a href="#">Andreas</a></p><img src="images/example.jpg" width="280" height="144" alt="Example right-aligned image" class="right photo" /><p>This is <strong><span class="blue">1024</span><span class="gray">px</span></strong>, a free website template from <a href="http://www.xxxxxxxxxxxxx.com/">xxxxxxxxxxxxx.com</a>. This is a regular XHTML/CSS template which you can use to build your own website or online presentation. The 1024px template is released as completely free code, which means that you are allowed to use it for any purpose and in any way you may want to, without any obligations or limitations. I kindly ask that you leave the credit text and link (the one that says "Design by Andreas Viklund" in the footer) since that is a nice way of supporting my template design work. But it is no requirement, just a request. Do what works best for you!</p><p class="readmore"><a href="#">Example "Read more" link</a> &raquo;</p><h2>CMS templates and blog themes?</h2><p class="timestamp">22 May, 2010 | Category: <a href="#">Sample</a> | Author: <a href="#">Andreas</a></p><p>If you are planning to use this template with a content management system or blog script, it may be worth checking if the template has been ported to the system of your choice already. Most of my templates have been customized to work with a number of different systems and scripts, and links to these variations can be found on the original <a href="http://andreasviklund.com/templates/">templates site</a>.</p><p>If you have any comments, questions, bug reports or suggestions regarding this template, or if you plan to customize this template into a new public theme for any CMS/Blog and want your version linked from my site, then you are very welcome to contact me through my website.</p><p>Good luck with your new site design!</p><p class="box"><strong>Note:</strong> For more information on how to use this template to build your own website, and for tools and tutorials that can be useful, go to <a href="http://andreasviklund.com/">andreasviklund.com</a>.</p></div><div id="sidebar"><h2>Layout variations</h2><p>This template comes in two different layout variations. <a href="index-alt.html">Switch to layout #2</a>!</p><h2>Sample menu:</h2><ul><li><a href="#">First page</a></li><li><a href="#">Second page</a></li><li><a href="#">Third page</a><ul><li><a href="#">First subpage</a></li><li><a href="#">Second subpage</a></li></ul></li><li><a href="#">Fourth page</a></li><li><a href="#header">Back to top</a></li></ul><h2>Sample updates</h2><p><strong>June 10th, 2010</strong><br />
Updated version: 1024px v3.0, with minor fixes.</p><h2>Sample links:</h2><ul><li><a href="http://andreasviklund.com/templates/">Free website templates</a></li><li><a href="http://andreasviklund.com/templates/commercial/">Commercial templates</a></li><li><a href="http://andreasviklund.com/wordpress-themes/">WordPress themes</a></li></ul></div><div id="footer"><p>Sample footer menu: <a href="#">Link 1</a> | <a href="#">Link 2</a> | <a href="#">Link 3</a> | <a href="#">Link 4</a> | <a href="#header">Back to top</a><br />
&copy; 2010 <a href="http://www.xxxxxxxxxxxxx.com">xxxxxxxxxxxxx</a> <a href="http://guantaow.taobao.com" target="_blank">xxxxxxxxxxxxx</a> | Template design from <a href="http://www.xxxxxxxxxxxxx.com/">xxxxxxxxxxxxx.com</a></p></div></div>
</body>
</html>

第二个页面

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="description" content="Your description goes here" /><meta name="keywords" content="your,keywords,goes,here" /><meta name="author" content="Your Name" /><link rel="stylesheet" type="text/css" href="1024px.css" title="1024px" media="screen,projection" /><title>1024px v3.0</title>
</head><body>
<div id="wrap"><div id="header"><p id="toplinks">Skip to: <a href="#contentalt">Content</a> | <a href="#sidebar">Navigation</a> | <a href="#footer">Footer</a></p><h1><a href="index.html">1024<span class="fade">px</span> v3.0</a></h1><p id="slogan">a free website template by Andreas Viklund</p></div><div id="contentalt"><h2>General information</h2><p class="timestamp">10 Jun, 2010 | Category: <a href="#">Sample</a> | Author: <a href="#">Andreas</a></p><img src="images/example.jpg" width="280" height="144" alt="Example right-aligned image" class="right photo" /><p>This is <strong><span class="blue">1024</span><span class="gray">px</span></strong>, a free website template from <a href="http://www.moobnn.com/">moobnn.com</a>. This is a regular XHTML/CSS template which you can use to build your own website or online presentation. The 1024px template is released as completely free code, which means that you are allowed to use it for any purpose and in any way you may want to, without any obligations or limitations. I kindly ask that you leave the credit text and link (the one that says "Design by Andreas Viklund" in the footer) since that is a nice way of supporting my template design work. But it is no requirement, just a request. Do what works best for you!</p><p class="readmore"><a href="#">Example "Read more" link</a> &raquo;</p><h2>CMS templates and blog themes?</h2><p class="timestamp">22 May, 2010 | Category: <a href="#">Sample</a> | Author: <a href="#">Andreas</a></p><p>If you are planning to use this template with a content management system or blog script, it may be worth checking if the template has been ported to the system of your choice already. Most of my templates have been customized to work with a number of different systems and scripts, and links to these variations can be found on the original <a href="http://andreasviklund.com/templates/">templates site</a>.</p><p>If you have any comments, questions, bug reports or suggestions regarding this template, or if you plan to customize this template into a new public theme for any CMS/Blog and want your version linked from my site, then you are very welcome to contact me through my website.</p><p>Good luck with your new site design!</p><p class="box"><strong>Note:</strong> For more information on how to use this template to build your own website, and for tools and tutorials that can be useful, go to <a href="http://andreasviklund.com/">andreasviklund.com</a>.</p></div><div id="sidebar"><h2>Layout variations</h2><p>This template comes in two different layout variations. <a href="index.html">Switch to layout #1</a>!</p><h2>Sample menu:</h2><ul><li><a href="#">First page</a></li><li><a href="#">Second page</a></li><li><a href="#">Third page</a><ul><li><a href="#">First subpage</a></li><li><a href="#">Second subpage</a></li></ul></li><li><a href="#">Fourth page</a></li><li><a href="#header">Back to top</a></li></ul><h2>Sample updates</h2><p><strong>June 10th, 2010</strong><br />
Updated version: 1024px v3.0, with minor fixes.</p><h2>Sample links:</h2><ul><li><a href="http://andreasviklund.com/templates/">Free website templates</a></li><li><a href="http://andreasviklund.com/templates/commercial/">Commercial templates</a></li><li><a href="http://andreasviklund.com/wordpress-themes/">WordPress themes</a></li></ul></div><div id="footer"><p>Sample footer menu: <a href="#">Link 1</a> | <a href="#">Link 2</a> | <a href="#">Link 3</a> | <a href="#">Link 4</a> | <a href="#header">Back to top</a><br />
&copy; 2010 <a href="http://www.moobnn.com">xxxx</a> <a href="http://xxxxxxxx.com" target="_blank">xxxx</a> | Template design from <a href="http://www.moobnn.com/">moobnn.com</a></p></div></div>
</body>
</html>

再来看看css

/*
Original design: 1024px (v3.0 - Jun 01, 2010) - A free xhtml/css website template by Andreas Viklund.
For more information, see http://andreasviklund.com/templates/1024px/
*//* General tags */
body {background:url(images/background.gif) repeat-y top center #fff; color:#404040; font:76% Verdana,Tahoma,Arial,sans-serif; line-height:1.3em; margin:0 auto; padding:0;}
a {color:#4088b8; font-weight:700; text-decoration:none;}
a:hover {text-decoration:underline;}
a img {border:0;}
p {margin:0 0 18px 10px;}
ul,ol,dl {font-size:0.9em; margin:2px 0 16px 35px;}
ul ul,ol ol {margin:4px 0 4px 35px;}
blockquote {border:1px solid #dadada; font-size:0.9em; margin:20px 10px; padding:8px;}
blockquote p {margin:0;}/* Headers */
h1 {color:#4088b8; font-size:3.6em; letter-spacing:-3px; margin:0 0 20px 25px;}
h1 a {color:#4088b8; text-transform:none;}
h2 {border-bottom:4px solid #dadada; color:#4088b8; font-size:1.4em; letter-spacing:-1px; margin:0 0 10px; padding:0 2px 2px 5px;}
h3 {border-bottom:1px solid #dadada; color:#4088b8; font-size:1.2em; font-weight:700; margin:10px 0 8px; padding:1px 2px 2px 3px;}/* Main wrap */
#wrap {color:#404040; margin:10px auto; padding:0; width:970px;}
#header {margin:0;}
#toplinks {font-size:0.9em; padding:5px 2px 2px 3px; text-align:right;}
#toplinks a {color:gray;}
#slogan {color:gray; font-size:1.5em; font-weight:700; letter-spacing:-1px; line-height:1.2em; margin:15px 0 20px 35px;}/* Sidebar and menu */
#sidebar {float:left; line-height:1.4em; margin:0 0 5px; padding:1px 0 0; width:195px;}
#sidebar ul {font-size:0.9em; list-style:none; margin:0; padding:0 0 15px 10px;}
#sidebar li {list-style:none; margin:0 0 4px; padding:0;}
#sidebar li a {font-size:1.2em; font-weight:700; padding:2px;}
#sidebar ul ul {line-height:1.2em; margin:4px 0 3px 15px; padding:0;}
#sidebar ul ul li a {font-weight:400;}
#sidebar h2 {margin:3px 0 8px;}/* Main content */
#content {float:right; line-height:1.5em; margin:0; padding:0; text-align:left; width:750px;}
#contentalt {float:left; line-height:1.5em; margin-right:20px; padding:0; text-align:left; width:750px;}
#content h3,#contentalt h3 {margin:10px 0 8px;}/* Footer */
#footer {border-top:4px solid #dadada; clear:both; color:gray; font-size:0.9em; line-height:1.6em; margin:0 auto; padding:8px 0; text-align:right;}
#footer p {margin:0; padding:0;}
#footer a {color:#808080;}/* Additional classes */
.box {background:#4088b8; border:1px solid #c8c8c8; color:#fff; font-size:0.9em; line-height:1.4em; padding:10px 10px 10px 13px;}
.box a {color:#f0f0f0;}
.left {float:left; margin:0 15px 4px 0;}
.right {float:right; margin:0 0 4px 15px;}
.readmore {margin:-10px 10px 12px 0; text-align:right;}
.timestamp {font-size:1.2em; margin:-5px 0 15px 10px;}
.timestamp a {font-weight:normal;}
.blue {color:#4088b8;}
.clear {clear:both;}
.fade {color:#c8c8c8;}
.gray {color:gray;}
.photo {background:#fff; border:1px solid #bababa; margin:6px 18px 2px 5px; padding:2px;}

是不是很适合学习!!!

真是绝绝子

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

安排!!

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

这篇关于分享一个美美的html模板的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



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

相关文章

Python将博客内容html导出为Markdown格式

《Python将博客内容html导出为Markdown格式》Python将博客内容html导出为Markdown格式,通过博客url地址抓取文章,分析并提取出文章标题和内容,将内容构建成html,再转... 目录一、为什么要搞?二、准备如何搞?三、说搞咱就搞!抓取文章提取内容构建html转存markdown

在React中引入Tailwind CSS的完整指南

《在React中引入TailwindCSS的完整指南》在现代前端开发中,使用UI库可以显著提高开发效率,TailwindCSS是一个功能类优先的CSS框架,本文将详细介绍如何在Reac... 目录前言一、Tailwind css 简介二、创建 React 项目使用 Create React App 创建项目

vue使用docxtemplater导出word

《vue使用docxtemplater导出word》docxtemplater是一种邮件合并工具,以编程方式使用并处理条件、循环,并且可以扩展以插入任何内容,下面我们来看看如何使用docxtempl... 目录docxtemplatervue使用docxtemplater导出word安装常用语法 封装导出方

Vue中组件之间传值的六种方式(完整版)

《Vue中组件之间传值的六种方式(完整版)》组件是vue.js最强大的功能之一,而组件实例的作用域是相互独立的,这就意味着不同组件之间的数据无法相互引用,针对不同的使用场景,如何选择行之有效的通信方式... 目录前言方法一、props/$emit1.父组件向子组件传值2.子组件向父组件传值(通过事件形式)方

css中的 vertical-align与line-height作用详解

《css中的vertical-align与line-height作用详解》:本文主要介绍了CSS中的`vertical-align`和`line-height`属性,包括它们的作用、适用元素、属性值、常见使用场景、常见问题及解决方案,详细内容请阅读本文,希望能对你有所帮助... 目录vertical-ali

C++中函数模板与类模板的简单使用及区别介绍

《C++中函数模板与类模板的简单使用及区别介绍》这篇文章介绍了C++中的模板机制,包括函数模板和类模板的概念、语法和实际应用,函数模板通过类型参数实现泛型操作,而类模板允许创建可处理多种数据类型的类,... 目录一、函数模板定义语法真实示例二、类模板三、关键区别四、注意事项 ‌在C++中,模板是实现泛型编程

浅析CSS 中z - index属性的作用及在什么情况下会失效

《浅析CSS中z-index属性的作用及在什么情况下会失效》z-index属性用于控制元素的堆叠顺序,值越大,元素越显示在上层,它需要元素具有定位属性(如relative、absolute、fi... 目录1. z-index 属性的作用2. z-index 失效的情况2.1 元素没有定位属性2.2 元素处

Python实现html转png的完美方案介绍

《Python实现html转png的完美方案介绍》这篇文章主要为大家详细介绍了如何使用Python实现html转png功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 1.增强稳定性与错误处理建议使用三层异常捕获结构:try: with sync_playwright(

Vue 调用摄像头扫描条码功能实现代码

《Vue调用摄像头扫描条码功能实现代码》本文介绍了如何使用Vue.js和jsQR库来实现调用摄像头并扫描条码的功能,通过安装依赖、获取摄像头视频流、解析条码等步骤,实现了从开始扫描到停止扫描的完整流... 目录实现步骤:代码实现1. 安装依赖2. vue 页面代码功能说明注意事项以下是一个基于 Vue.js

Python解析器安装指南分享(Mac/Windows/Linux)

《Python解析器安装指南分享(Mac/Windows/Linux)》:本文主要介绍Python解析器安装指南(Mac/Windows/Linux),具有很好的参考价值,希望对大家有所帮助,如有... 目NMNkN录1js. 安装包下载1.1 python 下载官网2.核心安装方式3. MACOS 系统安