1
页
顶我没有找到针对此问题的解决方案: 我想表明我playN游戏在一个html的iframe:PlayN帆布对象不是
<iframe src="../playn-showcase-html/Showcase.html"
width="640" height="480" name="Showcase" scrolling="no" marginwidth="0px" marginheigth="0px" frameborder="0" align="top">
</iframe>
我想使嵌入它没有边界。但是,正如你在下面的图片中看到的那样,在我不想要的iframe顶部有一个15px的黑色“矩形”。
可以看到的是Showcase.html(这是黑色)的背景。
正如我在Mozilla Firebug中看到的,黑色“矩形”是body元素的一部分。 画布对象位于顶部下方15px处。
如何更改代码以便画布对象从顶部开始?
下面是Showcase.html代码:
<!DOCTYPE html>
<html>
<head>
<title>PlayN Showcase</title>
<style>
@font-face {
font-family: "Museo";
src: url(showcase/text/Museo.ttf);
}
</style>
</head>
<body bgcolor="black">
<script src="showcase/showcase.nocache.js"></script>
</body>
</html>