mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
35 lines
620 B
HTML
35 lines
620 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<style>
|
||
|
.outer {
|
||
|
background:yellow;
|
||
|
position:absolute;
|
||
|
left:100px;
|
||
|
top:100px;
|
||
|
width:420px;
|
||
|
height:140px;
|
||
|
line-height:28px;
|
||
|
}
|
||
|
.inner {
|
||
|
float:left;
|
||
|
width:140px;
|
||
|
height:15.4px;
|
||
|
background:black;
|
||
|
}
|
||
|
canvas {
|
||
|
display:block;
|
||
|
float:left;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="outer"><div class="inner"></div><canvas id="c" width="10" height="10" style="width:14px; height:14px;"></canvas></div>
|
||
|
<script>
|
||
|
var ctx = document.getElementById("c").getContext("2d");
|
||
|
ctx.fillStyle = "black";
|
||
|
ctx.fillRect(2, 2, 6, 6);
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|