test
This commit is contained in:
33
index.html
Normal file
33
index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>KeVisual Base Example</title>
|
||||
<script type="module" src="./demo/lit/render.ts"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<ev-html>
|
||||
<style >
|
||||
p {
|
||||
color: red;
|
||||
/* 添加一个id */
|
||||
span {
|
||||
color: blue;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script type="text/envision">
|
||||
console.log('Script executed within ev');
|
||||
console.log(document.body, window.shadowRoot);
|
||||
</script>
|
||||
<p>This paragraph should be red.
|
||||
<span>This span.</span>
|
||||
</p>
|
||||
</ev-html>
|
||||
<p>This paragraph should be blue.</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user