OLD | NEW |
1 <style> | 1 <style> |
2 body { font-size: 64px; font-family: Ahem; color: transparent; } | 2 body { font-size: 64px; font-family: Ahem; color: transparent; } |
3 div { outline: 1px dashed green; } | 3 div { outline: 1px dashed green; } |
4 div::selection { background-color: rgba(0, 0, 255, .4); } | 4 div::selection { background-color: rgba(0, 0, 255, .4); } |
5 </style> | 5 </style> |
6 <div id="start" style="line-height: 30px;">queue theory</div> | 6 <div id="start" style="line-height: 30px; outline: none">queue theory</div> |
7 <div>problem</div> | 7 <div>problem</div> |
8 <div id="end" style="margin-top: -10px;">information</div> | 8 <div id="end" style="margin-top: -10px;">information</div> |
9 <script> | 9 <script> |
10 getSelection().setBaseAndExtent(document.getElementById("start").firstCh
ild, 2, document.getElementById("end").firstChild, 4); | 10 getSelection().setBaseAndExtent(document.getElementById("start").firstCh
ild, 2, document.getElementById("end").firstChild, 4); |
11 </script> | 11 </script> |
OLD | NEW |