使用 color range 提取头发细节 in Photoshop
此方式适用于背景颜色单一的情况,或者配合选区工具使用在背景稍微复杂的情况,或者使用背景擦除工具。
背景擦除工具使用教程参考:https://niekun.net/index.php/archives/719.html
此方式适用于背景颜色单一的情况,或者配合选区工具使用在背景稍微复杂的情况,或者使用背景擦除工具。
背景擦除工具使用教程参考:https://niekun.net/index.php/archives/719.html
一些特殊符号需要显示在 HTML 上时,需要使用符号实体来表示:
符号 | 含义 | 转义实体 | 转义号 |
空格 | |   | |
< | 小于号 | < | < |
> | 大于号 | > | > |
& | 和 | & | & |
" | 双引号 | " | " |
' | 单引号 | ' | ' |
¢ | 分 | ¢ | ¢ |
£ | 磅 | £ | £ |
¥ | 元 | ¥ | ¥ |
€ | 欧元 | € | € |
© | 版权 | © | © |
® | 注册商标 | ® | ® |
w3 教程:https://www.w3schools.com/HTML/html_entities.asp
希腊字符:https://www.w3schools.com/charsets/ref_utf_greek.asp
货币字符:https://www.w3schools.com/charsets/ref_utf_currency.asp
箭头符号:https://www.w3schools.com/charsets/ref_utf_arrows.asp
数学符号:https://www.w3schools.com/charsets/ref_utf_math.asp
更多杂类:https://www.w3schools.com/charsets/ref_utf_symbols.asp
选择特定元素内部的某个元素,需要使用加号 +
来进行选择。
<!DOCTYPE html>
<html>
<head>
<style>
div + p {
background-color: yellow;
}
</style>
</head>
<body>
<h1>Welcome to My Homepage</h1>
<div>
<h2>My name is Donald</h2>
<p>I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
<p>I will not be styled.</p>
</body>
</html>
当我们对网站做了修改,推送到远程服务器后,发现页面还是老样子。这是由于浏览器缓存的问题,html 页面一般会及时更新,但 JavaScript/css 脚本常常无法及时更新,这时候需要手动进行处理。
方法一:
在多数浏览器中,可以使用 CTRL + F5 快捷键强制刷新。一般能看到最新的结果。
方法二:
如果你使用 Google chrome 浏览器,则可以使用 debugger 禁止缓存: 右键 - inspect - Network - Disable cache
方法三:
在源码的 link/script 中修改如下:
<link rel="stylesheet" href="my-css-file.css?v=1">
<script src="my-js-file.js?v=1"></script>
主要是在文件后加上 ?v=1
类似的字符串。当然也可换成其他写法,如:?time=2019126
等。
下次更新文件时,将后缀修改成其他数字即可。这样的好处是你的用户们也可以同时收到最新更新。
参考链接:
https://stackoverflow.com/questions/3951187/javascript-file-not-updating-no-matter-what-i-do
https://stackoverflow.com/questions/3466989/what-does-appending-v-1-to-css-and-javascript-urls-in-link-and-script-tags-do
lightbox 是一个JavaScript 库,用来在前端显示图片。它的特点是轻量,容易部署,适用于现代的浏览器。
官网:https://lokeshdhakar.com/projects/lightbox2/
GitHub 项目地址:https://github.com/lokesh/lightbox2
release 下载:https://github.com/lokesh/lightbox2/releases