HTML to Excel : mso-number-format style attribute
<style>
td.int { mso-number-format:\#\,0; text-align:right; }
td.decimal-2 { mso-number-format:\#\,0\.00; }
td.text {mso-number-format:\@}
< /style>
- NO Decimals : mso-number-format:”0″
- 3 Decimals : mso-number-format:”0\.000″
- Comma with 3 dec : mso-number-format:”\#\,\#\#0\.000″
- Date7 : mso-number-format:”mm\/dd\/yy”
- Date9 : mso-number-format:”mmmm\ d\,\ yyyy”
- D -T AMPM : mso-number-format:”m\/d\/yy\ h\:mm\ AM\/PM”
- 01/03/1998 : mso-number-format:”Short Date”
- 01-mar-98 : mso-number-format:”Medium Date”
- 01-mar-1998 : mso-number-format:”d\-mmm\-yyyy”
- 5:16 : mso-number-format:”Short Time”
- 5:16 am : mso-number-format:”Medium Time”
- 5:16:21:00 : mso-number-format:”Long Time”
- Percent – two decimals : mso-number-format:”Percent”
- Percent – no decimals : mso-number-format:”0%”
- Scientific Notation : mso-number-format:”0\.E+00″
- Text : mso-number-format:”\@”
- Fractions – up to 3 digits (312/943) : mso-number-format:”\#\ ???\/???”
- £12.76 : mso-number-format:”\0022£\0022\#\,\#\#0\.00″
- 2 decimals, negative numbers in red and signed(1.56 -1.56) : mso-number-format:”\#\,\#\#0\.00_ \;\[Red\]\-\#\,\#\#0\.00\”
'웹프로그래밍 > HTML, CSS' 카테고리의 다른 글
[HTML] excel 출력시 내용 줄바꿈 (0) | 2014.04.23 |
---|---|
[CSS] 웹 색상표 (0) | 2013.09.13 |
ie의 호환성보기 버튼 없애기 (0) | 2013.09.03 |
URL Encoding Table(URL 인코딩 테이블) (0) | 2013.06.14 |
[CSS] 텍스트 잘리는부분 ...처리 (0) | 2012.04.11 |