Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

NightCatSama/textarea-line-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

textarea-line-number

###textarea标签自动显示行号(Textarea tags automatically displays line Numbers)

DEMO

###html

<body>
  <textarea type="text" id="text" class="text"></textarea>
  <script src="./js/jquery-1.12.0.min.js"></script>
  <script src="./js/auto-line-number.js"></script>
</body>

###JavaScript

	$("#textarea").setTextareaCount();

###Option width 行号条的宽度,默认30px color 行号条的字体颜色,默认#FFF bgColor 行号条的背景颜色,默认#333 display 行号条的类型,默认block

###Example 支持使用类名可同时多个配置

	$(".textarea").setTextareaCount({
	  	width: "30px",
		bgColor: "#999",
		color: "#FFF",
		display: "block"
	});

About

textarea标签自动显示行号(Textarea tags automatically displays line Numbers)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •