본문 바로가기

Web/Javascript

엑셀에서 br먹히기

html>

<head>
<style>
br{mso-data-placement:same-cell;}
</style>
</head>

<body>

<table border=0 cellpadding=0 cellspacing=0 width=96>
<tr>
<td height=36>a<br>a</td>
</tr>
</table>

</body>

</html>

요기서
<style>
br{mso-data-placement:same-cell;}
</style>
이 부분이 셀내에서 엔터키를 먹게끔 하는 부분입니다

'Web > Javascript' 카테고리의 다른 글

js view 막기  (0) 2013.09.26
js로 문자열 자르기, 바이트 구하기  (0) 2013.09.26
페이드 이미지  (0) 2013.09.26
레디오버튼 선택하기  (0) 2013.09.26
TR 선택시 배경색 변경하기  (0) 2013.09.26