回复 2# zaqmlp
感谢大神,完美解决我的问题。红包已转,请查收!
不过,又出现一个新问题。生成的每一个html文件前70行内容都相同,如下- <!DOCTYPE html>
- <html style='width:100%; height:100%; border:0; margin:0; padding:0;'>
- <head>
- <meta http-equiv='X-UA-Compatible' content='chrome=1'/>
- <meta http-equiv='X-UA-Compatible' content='IE=edge'/>
- <meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
- <link rel='stylesheet' type='text/css' href='http://www.x3dom.org/x3dom/release/x3dom.css'/>
- <script type='text/javascript' src='http://www.x3dom.org/x3dom/release/x3dom.js'></script>
- <style>.x3dom-logContainer { bottom: 0px; position: absolute; }
- </style>
- </head>
- <body style='width:100%; height:100%; border:0; margin:0; padding:0;'>
- <div id='HUDs_Div'>
- <div id='X3DOM_AOPT_Links' class='group' style='margin:26px 2px 2px; padding:4px; background-color:rgba(199,202,204,.7); position:absolute; z-index:1000;'>
- <a href='http://www.x3dom.org'>X3DOM
- </a> output created with
- <a href='http://www.instantreality.org'>InstantReality
- </a> aopt tool.
- </div>
- <div id='Interaction_Toolbox' style='margin:2px; padding:4px 150px 4px 4px; background-color:rgba(199,202,204,.7); position:absolute; z-index:1000; right:0px; top:0px;'>
- <table>
- <tr>
- <td>Navigation Mode:
- </td>
- <td align='right'>
- <select style='float:right;' onchange='document.getElementById('x3dElement').runtime[value]();'>
- <option selected='selected' value='examine'>Examine
- </option>
- <option value='turnTable'>TurnTable
- </option>
- <option value='lookAt'>LookAt
- </option>
- <option value='lookAround'>LookAround
- </option>
- <option value='fly'>Fly
- </option>
- <option value='freeFly'>FreeFly
- </option>
- <option value='helicopter'>Helicopter
- </option>
- <option value='walk'>Walk
- </option>
- <option value='noNav'>None
- </option>
- </select>
- </td>
- </tr>
- <tr>
- <td>Debug Display:
- </td>
- <td align='right'>
- <input type='checkbox' onclick='document.getElementById('x3dElement').runtime.statistics(this.checked);'>
- </input> Stats
- <input type='checkbox' onclick='document.getElementById('x3dElement').runtime.debug();'>
- </input> Log
- </td>
- </tr>
- <tr>
- <td>
- <button onclick='document.getElementById('x3dElement').runtime.showAll();'> Show Everything
- </button>
- </td>
- <td>
- <button onclick='document.getElementById('x3dElement').runtime.resetView();'> Reset View
- </button>
- </td>
- </tr>
- </table>
- </div>
- </div>
复制代码 我想把上面这些内容用下面的代码替换掉- <!DOCTYPE html>
- <html style='width:100%; height:100%; border:0; margin:0; padding:0;'>
- <head>
- <meta http-equiv='X-UA-Compatible' content='chrome=1'/>
- <meta http-equiv='X-UA-Compatible' content='IE=edge'/>
- <meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
- <link rel='stylesheet' type='text/css' href='css/x3dom.css'/>
- <script type='text/javascript' src='js/x3dom.js'></script>
- <style>.x3dom-logContainer { bottom: 0px; position: absolute; }
- </style>
- </head>
- <body style='width:100%; height:100%; border:0; margin:0; padding:0;'>
- </div>
复制代码 有偿求好心大神帮忙解决! |