
11.02.2009, 23:06
|
|
Banned
Регистрация: 06.01.2008
Сообщений: 413
Провел на форуме: 1301036
Репутация:
1334
|
|
Вот простой пример растягивание textarea по вертикали
Код:
<html>
<head>
<style>
div.text_editor textarea
{
width: 398px;
height:100px;
} div.text_editor div {
background: #e2e2e2 url("resizer.gif") no-repeat;
background-position:center;
height:10px;
width:400px;
font-size:.01em;/* поправка высоты для IE */
cursor:s-resize;
}
</style>
<script src="textareaResizer.js"></script>
<title>Демонстрация textareaResizer</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>Пример</h1>
<div class="text_editor">
<textarea name="text" id="ta_text">Этот textarea будет растягиваться по вертикали</textarea>
<div id="ta_text_resizer" onMouseDown="textareaResizer(event);"> </div>
</div>
</body>
</html>
|
|
|