HTML学习笔记
div 和 span标签在HTML中,<div> 和 <span> 都是用于组合其他HTML元素的容器标签,它们本身没有任何特殊的格式化效果,用途在于通过CSS来控制样式或通过JavaScript来添加行为。
<div>
是一个块级元素。
默认情况下,每个 div 都会从新的行开始,并且其后的元素也会从新行开始。
通常用于组合文档中的区块,比如头部、脚注或者章节等。
例子:123<div class="container"> <!-- 内容 --></div>
<span>
是一个内联元素。
不会强制换行,它会让内容与其他内联元素在同一行显示。
通常用于组合文档中的行内文本,如高亮某些文字或为特定文本添加样式。
例子:1<p><span class="highlight">这段文字</span>会被高亮。</p>
总结:
<div> 适用于较大的结构块,如布局分区。
<span& ...
鸡尾酒指南
Spirit
琴酒 (Gin)
原料:琴酒主要以谷物 为基底,如小麦或大麦,经过蒸馏后加入杜松子 (juniper berries)和其他香料调味。
最大特点:琴酒的标志性风味来自于杜松子,它赋予了琴酒清新而略带苦味 的特点。此外,不同的琴酒品牌还会加入其他草本植物和香料,如柑橘皮、芫荽籽、肉桂等,以增加层次感和复杂性。
伏特加 (Vodka)
原料:伏特加通常以谷物 (如小麦、大麦或玉米)或马铃薯 为原料,经过多次蒸馏制成。
最大特点:伏特加以其纯净无色、无味和无臭 的特点而闻名,这使得它成为许多鸡尾酒的理想基酒,因为它不会掩盖其他成分的味道 。
朗姆酒 (Rum)
原料:朗姆酒是以甘蔗 糖蜜或新鲜甘蔗汁为原料,经过发酵和蒸馏制成。
最大特点:朗姆酒的风味因其产地和生产工艺的不同而有很大差异。它可以是清淡的、中等的或是浓郁的,有的带有果香,有的则更偏向于焦糖和香草的味道。
威士忌 (Whiskey)
原料:威士忌通常以谷物(如大麦、玉米、黑麦、小麦等)为原料,经过发酵、蒸馏并在橡木桶中陈酿 。
最大特点:威士忌的风味因产地、谷物种类和陈酿时间的不同而有所区别。比如苏格兰 ...
Hexo搭建个人博客教程(基础篇)
简介目的
本教程主要介绍在windows系统下如何配置wsl,并在其中配置Node.js环境,使用Hexo框架搭建简单的个人博客,最后使用Markdown进行博客文章的编写并部署到github-pages上。
概念理清
在正式开始之前,我们先简单了解一下我们搭建博客过程中需要使用到的重要概念,以下是比较形象的理解,非准确定义,供参考:
WSL (Windows Subsystem for Linux): WSL让 Windows 用户无需虚拟机或双系统,就能直接在 Windows 中运行原生的 Linux 命令行工具和应用程序。
node.js:JavaScript的服务端运行环境, 让JavaScript跳出浏览器的束缚,在服务器上构建高效、可扩展的应用程序(可以简单理解为给hexo框架的运行提供了必须的环境)。
npm (Node Package Manager):npm 就像是 Node.js 的仓库管理员,负责维护着数以百万计的 JavaScript 库和工具包,使得开发者能够方便地查找、安装并管理这些工具。
Markdown: 一种简洁的文字格式化语法,将纯文本转 ...
Git多人协作开发流程(Feature-branch)
Git多人协作开发流程1. 克隆远程仓库首先,每个开发者需要从远程仓库克隆项目到本地。
1git clone <远程仓库URL>
具体的步骤可以参考GitHub帮助文档-Cloning a repository。
注意事项从GitHub克隆仓库,配置SSH公钥通常是一个很好的实践。具体可以参考GitHub SSH公钥配置。
远程分支在本地,通常是以origin/branch-name的形式表示。它的作用只是指示远程分支的开发进度,并不会干扰本地分支。实际上只有在远程仓库上创建了分支,或者将本地分支push到了远程仓库,才会有远程分支。
2. 创建并切换分支为避免直接在主分支上工作,每个开发者应创建自己的特性分支。
1git checkout -b feature-branch
上述命令会创建一个名为feature-branch的新分支,并立即切换到该分支。如果只是创建一个新分支,不切换到该分支,可使用git branch feature-branch。
3. 开发与提交在特性分支上进行开发,定期提交代码。
12git add .git commit -m "提 ...