@rrc/watermark

1.0.1 • Public • Published

安全水印

使用

yarn add @rrc/watermark -S
npm i @rrc/watermark -S
import Watermark from '@rrc/watermark'
new Watermark().init({ text: '人人车' })

js 引入

<script src="文件路径或者cdn 路径/index.min.js"></script>
<script>
  $(function(){
    new RrcWatermark().init({ text: '人人车' })
  })
</script>

配置

  {
    text: 'www.renrenche.com', // 水印文本
    font: '20px Times New Roman', // 字体
    rotateDegree: 30 * Math.PI / 180, // 旋转角度
    width: 140, // 宽
    height: 100, // 高
    // 样式
    style: {
      width: '100%',
      height: '100%',
      top: 0,
      left: 0,
      position: 'fixed',
      'z-index': 1000
    }
  }

Readme

Keywords

Package Sidebar

Install

npm i @rrc/watermark

Weekly Downloads

0

Version

1.0.1

License

none

Last publish

Collaborators

  • xierenhong