本文主要是介绍基于photo sphere viewer的360全景展示,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>360全景图展示</title><link rel="stylesheet" type="text/css" href="https://os.alipayobjects.com/rmsportal/BfEgqbhITpXKmNcQqJmI.css" /><script src="https://os.alipayobjects.com/rmsportal/gvmIzdKRFvEjPqTBGyGe.js"></script><script src="https://os.alipayobjects.com/rmsportal/gtITtPAuXpBIkABlxHkS.js"></script>
</head><body><style>body {font-size: 16px;background-color: #E6E7EB;margin: 0;}#your-pano {position: relative;margin: 0 auto;}</style><div class="container"><div id="your-pano"></div></div><script>var div = document.getElementById('your-pano');new PhotoSphereViewer({panorama: 'https://gw.alicdn.com/tfs/TB1WSInRFXXXXXlXpXXXXXXXXXX-1200-600.jpg',container: div,time_anim: false,navbar: true,size: {width: '600px',height: '400px'}});</script>
</body></html>
转载地址:http://www.qdfuns.com/notes/35185/e7e58990fd5b8f68462c8be25c38e93a.html
这篇关于基于photo sphere viewer的360全景展示的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!