27 lines
607 B
HTML
27 lines
607 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
#editable {
|
|
font: 20px/1 Ahem;
|
|
width: 50px;
|
|
height: 1em;
|
|
margin-left: 500px;
|
|
margin-top: 200px;
|
|
background: green;
|
|
text-indent: -150px;
|
|
outline: none;
|
|
}
|
|
</style>
|
|
<script src="resources/repaint.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
function repaintTest() {
|
|
document.getElementById('editable').focus();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="runRepaintTest();">
|
|
<div id="editable" contenteditable="true"></div>
|
|
</body>
|
|
</html>
|