yigexiaojiangshi

1.所用插件JsBarcode

2.下载地址:https://github.com/lindell/JsBarcode

3.用法:

<script>  
JsBarcode("#JsBarcode", "123", {
  format: "CODE39",//选择要使用的条形码类型
  width:3,//设置条之间的宽度
  height:100,//高度
  displayValue:true,//是否在条形码下方显示文字
  text:"456",//覆盖显示的文本
  fontOptions:"bold italic",//使文字加粗体或变斜体
  font:"fantasy",//设置文本的字体
  textAlign:"left",//设置文本的水平对齐方式
  textPosition:"top",//设置文本的垂直位置
  textMargin:5,//设置条形码和文本之间的间距
  fontSize:15,//设置文本的大小
  background:"#eee",//设置条形码的背景
  lineColor:"#2196f3",//设置条和文本的颜色。
  margin:15//设置条形码周围的空白边距
});
  
  </script>

  

 

分类:

技术点:

相关文章:

  • 2021-10-16
  • 2021-12-10
  • 2021-09-17
  • 2021-05-28
  • 2021-11-02
  • 2021-10-13
  • 2021-07-03
  • 2021-11-17
猜你喜欢
  • 2022-01-28
  • 2021-09-11
  • 2021-11-24
  • 2021-07-18
  • 2021-12-16
  • 2021-10-27
  • 2021-08-01
相关资源
相似解决方案