Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个 800x300 的游戏。
现在我只是想知道如果我想把它变成应用商店的应用程序,在这个屏幕尺寸下是否有可能?还是我必须根据屏幕大小重新调整大小,在这种情况下我必须编辑我的代码:(
至于它是html5,你能赚多少钱,因为代码只会让人困惑。
您可以使用 css 缩放画布元素。如果您创建一个画布元素并将其高度和宽度属性设置为 800x300,则可以使用 css 将其CSS h/w设置为缩放大小。前任: <canvas height="300" width="800" style="height:100%;width:100%"></canvas>
<canvas height="300" width="800" style="height:100%;width:100%"></canvas>