티스토리 뷰

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

참고 : 

http://blog.isotoma.com/2012/03/html5-input-typenumber-and-decimalsfloats-in-chrome/

http://stackoverflow.com/questions/19011861/is-there-a-float-input-type-in-html5



방법1.

<form name="">

<input type="number" max="100" min="0"  step="any" />

<button type="submit">ddd</button>

</form>



방법2.

<form name="">

<input type="number" max="100" min="0"  step="0.1" />

<button type="submit">ddd</button>

</form>



step 을 원하는 자리 소수점을 하던가 any 라고 값을 준다.

증가 감소 화살표 누를때 좀 뭐하겠지만 ㅡㅡ;

댓글
댓글쓰기 폼
공지사항
Total
1,769,592
Today
0
Yesterday
10
링크
«   2023/04   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
글 보관함