8 lines
528 B
HTML
8 lines
528 B
HTML
<style>
|
|
div::selection { background-color: green; }
|
|
</style>
|
|
<div id="target" style="font: 11px 'lucida grande'; color: transparent; width: 100px; overflow: hidden;">i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u </div>
|
|
<script>
|
|
getSelection().setBaseAndExtent(target, 0, target, 1);
|
|
</script>
|