如何使用dart:html获取当前所选内容的文本或内部html?我使用div的事件作为开始:
<div on-mouseup="{{on_mouseup}}">
void on_mouseup(MouseEvent e, var detail, DivElement src) {
final selection = window.getSelection();
// do somthing
// ..
// final selectedText = ..;
window.alert("Selected text is $selecte
<html>
<style>
body { color: blue; }
</style>
<body>
<h1>Styles!</h1>
<p>somebody made a very broad selector</p>
<isolated-stuff></isolated-stuff>
</body>
<script>
class DemoElement extends HTMLElem
我使用以下基本的html和css模式(尽管我的活动代码看起来非常不同)。
html, body {height: 100%;}
#wrap {min-height: 100%;}
#main {overflow:auto;
padding-bottom: 150px;} /* must be same height as the footer */
#footer {position: relative;
margin-top: -150px; /* negative value of footer height */
height: 150px;
cl