我试图使HTML画布全页。在我的代码中,它警告说画布大小=窗口大小,但未显示正确的输出。
这里的HTML - >
rgba(r,g,b,a)
css->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas></canvas>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="main.js"></script>
</body>
</html>
和jquery->
body
{
margin: 0;
}
canvas
{
/*border: 1px solid black;*/
background: green;
}
答案 0 :(得分:0)
我已设法解决您的代码。让我解释。
太好了,因为在我看来DECLARE @count INT
DECLARE @mgrname VARCHAR(20)
SET @count = 3
WITH MGRlist as(
SELECT DISTINCT Empmanager FROM HR)
**SET @mgrname** = SELECT Empmanager FROM (
SELECT ROW_NUMBER() OVER (ORDER BY mgr ASC) AS RowNumber,
*
FROM MGRlist
) AS RESULT
WHERE RowNumber = @count -- FIND THE CURRENT MANAGER NAME
和width()
就像是set / get函数,我尝试这样做:
height()
代替(您做了什么):
canvas.width(windowWidth);
canvas.height(windowHeight);
它奏效了。试试吧!