"HTML meter 태그"의 두 판 사이의 차이

15번째 줄: 15번째 줄:
*예제: http://jmnote.com/html5/meter2.php
*예제: http://jmnote.com/html5/meter2.php
<source lang='php'>
<source lang='php'>
<?php for($v=0; $v<=1; $v+=0.05): ?>
<br><meter low="0.25" high="0.75" value="0"></meter> 0%
  <meter value="<?php echo $v; ?>"><?php echo $v*100.'%'; ?></meter><br>
<br><meter low="0.25" high="0.75" value="0.1"></meter> 10%
<?php endfor; ?>
<br><meter low="0.25" high="0.75" value="0.2"></meter> 20%
<br><meter low="0.25" high="0.75" value="0.3"></meter> 30%
<br><meter low="0.25" high="0.75" value="0.4"></meter> 40%
<br><meter low="0.25" high="0.75" value="0.5"></meter> 50%
<br><meter low="0.25" high="0.75" value="0.6"></meter> 60%
<br><meter low="0.25" high="0.75" value="0.7"></meter> 70%
<br><meter low="0.25" high="0.75" value="0.8"></meter> 80%
<br><meter low="0.25" high="0.75" value="0.9"></meter> 90%
<br><meter low="0.25" high="0.75" value="1"></meter> 100%
</source>
</source>



2014년 12월 31일 (수) 16:01 판

1 개요

HTML <meter> Tag
HTML meter 태그


2 예시 1

<meter value="0.75">75%</meter><br>
<meter min="1" max="6" value="3">3 / 6</meter>

3 예시 2

<br><meter low="0.25" high="0.75" value="0"></meter> 0%
<br><meter low="0.25" high="0.75" value="0.1"></meter> 10%
<br><meter low="0.25" high="0.75" value="0.2"></meter> 20%
<br><meter low="0.25" high="0.75" value="0.3"></meter> 30%
<br><meter low="0.25" high="0.75" value="0.4"></meter> 40%
<br><meter low="0.25" high="0.75" value="0.5"></meter> 50%
<br><meter low="0.25" high="0.75" value="0.6"></meter> 60%
<br><meter low="0.25" high="0.75" value="0.7"></meter> 70%
<br><meter low="0.25" high="0.75" value="0.8"></meter> 80%
<br><meter low="0.25" high="0.75" value="0.9"></meter> 90%
<br><meter low="0.25" high="0.75" value="1"></meter> 100%

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}