CSS的@规则

@规则

@charset

样式表的第一个元素,前面不得有任意字符,只有第一个会被使用,属性值大小写不敏感且必须用双引号,主常用于让content属性使用非ASCII字符

浏览器查找样式表字符编码顺序:

  1. BOM(byte-order mark)
  2. Content-Type: Http header中的charset属性
  3. @charset
  4. link元素的charset属性(HTML5标准已废弃)
  5. 假设文档是UTF-8

Read More

Vue水印组件





<v-watermark
  :width="{{width}}px"
  :height="{{height}}px"
  :row="{{row}}"
  :column="{{column}}"
  :item-width="{{itemWidth}}px"
  :item-height="{{itemHeight}}px"
  :text="{{text}}"
  :angle="{{angle}}"
  :x-start="{{xStart}}"
  :y-start="{{yStart}}"
  :x-space="{{xSpace}}"
  :y-space="{{ySpace}}"
  :font-size="{{fontSize}}"
  :font="{{font}}"
  :color="{{color}}"
  :alpha="{{alpha}}"
  class="example1"
>
  <img src='./src/asserts/ace.webp'/>
</v-watermark>

js动态添加脚本

1
2
3
4
5
6
7
8
9
function addScript(url) {
var head = document.getElementsByTagName('head')[0]
var script = document.createElement('script')
script.src = url
script.type = 'text/javascript'
script.defer = true
head.appendChild(script)
}
addScript('https://cdn.bootcss.com/lodash.js/4.17.10/lodash.js')

git flow

步骤

1. 新建分支

git checkout -b 类型/任务编号_任务内容

-b 代表 branch,即新建一个分支

类型有以下几种:

  • feature:功能分支
  • hotfix:补丁分支
  • release:预发分支

Read More