Browse Source

Docs: Improve CSS in creating-a-scene guide.

Mugen87 5 years ago
parent
commit
beecfbacbe

+ 2 - 2
docs/manual/en/introduction/Creating-a-scene.html

@@ -24,7 +24,7 @@
 				<title>My first three.js app</title>
 				<style>
 					body { margin: 0; }
-					canvas { width: 100%; height: 100% }
+					canvas { display: block; }
 				</style>
 			</head>
 			<body>
@@ -126,7 +126,7 @@
 				<title>My first three.js app</title>
 				<style>
 					body { margin: 0; }
-					canvas { width: 100%; height: 100% }
+					canvas { display: block; }
 				</style>
 			</head>
 			<body>

+ 2 - 2
docs/manual/zh/introduction/Creating-a-scene.html

@@ -24,7 +24,7 @@
 				<title>My first three.js app</title>
 				<style>
 					body { margin: 0; }
-					canvas { width: 100%; height: 100% }
+					canvas { display: block; }
 				</style>
 			</head>
 			<body>
@@ -127,7 +127,7 @@
 				<title>My first three.js app</title>
 				<style>
 					body { margin: 0; }
-					canvas { width: 100%; height: 100% }
+					canvas { display: block; }
 				</style>
 			</head>
 			<body>