A-Frame is locking the scroll in the page where I am using it. When I open a page with my A-Frame scene, it takes up 100% page width and height and I cannot scroll. Is there a class I have to remove?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use the embedded
component to remove fullscreen styles and make it embeddable within a web page. https://aframe.io/docs/0.8.0/components/embedded.html
<a-scene embedded>
<!-- scene stuff -->
</a-scene>
Then you are free the style <a-scene>
how you wish
a-scene { display: block; width: 50%; }