텍스트 상자를 적절한 위치에서 캔버스 위에 놓으려고합니다.내 CSS가 작동하지 않는 이유를 알 수 없음
ID를 사용하여 CSS를 구현하면 작동하지 않습니다. 그러나 CSS에서 html 요소를 대신 지정하면 작동합니다. (그래도 고유 한 텍스트 상자를 조작 할 수는 없습니다.) (캔버스 태그로 시연)
리틀 도움말?
<style type="text/css">
canvas { position:absolute;
z-index:-1;
top:0px;
left:100px;
}
.wrapper{ height:100%;
width:100%;
}
.username { position:absolute;
top:200px;
left:150px;
visibility:hidden;
z-index:1;
}
.password { position:absolute;
top:300px;
left:150px;
visibility:hidden;
z-index:2;
}
</style>
</head>
<body>
<div id="wrapper">
<canvas id = "gamescreen" height = "800" width = "800"></canvas>
<input type="text" name="username" id="username" />
<input type="password" name="password" id="password" />
</div>
</body>
** facepalm ** 기억해야합니다. – Schenn
하하 우리 모두 제게 아무런 문제가 없습니다. 첫 번째 평판 포인트를 얻을 수있어서 다행입니다. : – secretformula
@secretformula : 환영합니다 :) – BoltClock