案例:Three 局部渲染     状态:可编辑再运行    进入横版
x
 
1
<!DOCTYPE html>
2
<html>
3
4
<head>
5
  <meta charset="UTF-8">
6
  <title>Three 局部渲染</title>
7
  <style>
8
    body {
9
      margin: 0;
10
      overflow: hidden;
11
      /* 隐藏body窗口区域滚动条 */
12
    }
13
  </style>
14
  <script src="https://www.w3xue.com/js/threejs/threer92.js"></script>
15
  <script src="https://www.w3xue.com/example/threejs/solarsystem/files/OrbitControls.js"></script>
16
</head>
17
18
<body>
19
  <div id="pos" style="position: absolute;left: 30px;top: 100px;"></div>
20
  <!-- 控制div位置 -->
21
  <!-- <div id="pos" style="position: absolute;left: 30px;top: 100px;"></div> -->
22
  <script>
23
    /**
24
     * 创建场景对象Scene

 运行结果 
 北美留学生论坛