Barcode--jsbarcode

Source: Internet
Author: User

Introduce the JS plugin to generate barcodes on GitHub →Jsbarcode

Barcode support is:

CODE128
CODE128 (automatic mode switching)
CODE128 a/b/c (forced mode)
Ean
EAN-13
EAN-8
EAN-5
EAN-2
UPC (A)
CODE39
ITF-14
Msi
MSI10
MSI11
MSI1010
MSI1110
Pharmacode
Codabar

Code

<! DOCTYPE html>  
</body>

Jsbarcode We can also set some properties of the bar code (you can set the property details Link: https://github.com/lindell/JsBarcode/wiki/Options)

            <script>  jsbarcode ("#imgcode", "123", {  format: "CODE39",//Select the type of barcode to use  width:3,//The width height:100,//height between the bars  displayvalue:true,//whether the text is displayed below the barcode text  : "456",//overlay the  displayed Fontoptions: "Bold Italic",//Make text bold or italic  font: "Fantasy",//Set text font  textAlign: "Left"//Set horizontal  alignment of text TextPosition: Top,//Set the vertical position of the text  textmargin:5,//set the spacing between the barcode and the text  fontsize:15,//set the size of the text  background: "# Eee ",//Set the background  of the barcode linecolor:" #2196f3 ",//Set bar and color of text.  margin:15//Setting the blank margin around the barcode});    </script>  

Github:https://github.com/lindell/jsbarcode

Barcode Generator: http://lindell.me/JsBarcode/generator/

Jsbarcode examples and settings: http://codepen.io/lindell/pen/mPvLXx?editors=1010

Simple Jsbarcode Demo: http://codepen.io/lindell/pen/eZKBdO?editors=1010

Category: Javascrit good text to the top attention to my collection of the text Huangenai
Follow-23
Fans-32 + plus attention10? Prev: Touch Slide Plugin Swiper
? Next post: JSAPI Payment callback Posted @2017-01-25 15:39 Huangenai Read (13662) Comments (4) Edit Collection


List of commentsReply Reference#1楼2017-08-08 16:51 beheaded personHello, can I print out to scan?? Support (0) objection (0)Reply Reference#2楼 [Landlord] 2017-08-08 16:52 Huangenai @ A beheaded person
Sweep the code gun and mobile phone camera can sweep out AH support (0) objection (0)Reply Reference#3楼2017-08-08 16:52 beheaded person
123456789 <imgid="orderBarcodeImg"                 jsbarcode-format="CODE128"                 jsbarcode-value="BF1_ZX4793981"                 jsbarcode-width="1"                 jsbarcode-height="15"                 jsbarcode-margin="3"                 jsbarcode-fontSize="10"                 jsbarcode-textMargin="1"            />

1 JsBarcode("#orderBarcodeImg").init();

This is my code, expect to receive your reply support (0) objection (0)Reply Reference#4楼 [Landlord] 2017-08-08 16:54 Huangenai @ A beheaded person
What's the problem?

Barcode--jsbarcode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.