代码:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>threejs</title>
<style>
body {
margin: 0;
overflow: hidden;
background: #000046;
/* fallback for old browsers */
background: -webkit-linear-gradient(to top, #1CB5E0, #000046);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #1CB5E0, #000046);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+,