<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"> <title>预览模型</title> <style> html, body, #iframeDiv,iframe { position: relative; height: 100%; width: 100%; width: 100%; height: 100%; border: none; margin: 0; padding: 0; } </style> </head> <body> <!-- 用于放模型展示的iframe,id不能修改 --> <div id="iframeDiv"> </div> </body> <!-- 引入jquery --> <script src="coreViewer/res/jquery-1.11.3.min.js"></script> <!-- 引入公共控制类,用于控制模型外部数据传递--> <script src="viewer.js"></script> <script> window.onload = function () { nd_viewCtrl.init({ //3D轻量化文件所在文件夹路径 'models/bim/' src: 'models/bim/',//轻量化文件所在文件夹路径 }); } </script> </html>