3
我在我的網站實施了purechat,它在所有瀏覽器上工作,除了在ie上,但我很驚訝純頁聊的內容顯示在頁面上,但找不到它在頁面源,甚至無法找到使用F12,通過查看元素在ie,可以隱藏HTML使用? ?IE開發人員工具:源不顯示完整的HTML
我在我的網站實施了purechat,它在所有瀏覽器上工作,除了在ie上,但我很驚訝純頁聊的內容顯示在頁面上,但找不到它在頁面源,甚至無法找到使用F12,通過查看元素在ie,可以隱藏HTML使用? ?IE開發人員工具:源不顯示完整的HTML
我知道IE開發人員的工具,您需要使用查看區域上方的刷新圖標來刷新html。也許你可以嘗試嗎?
另外,purechat很有可能通過在IE上很難查看的iframe來工作。
作爲第一步,我會嘗試通過在瀏覽器中使用更好的開發工具(如Google Chrome)來查找purechat代碼。
更新
經過進一步的研究,我發現,purechat顯示爲HTML 不是一個iframe。我相信你遇到的問題是因爲IE開發者工具沒有更新html。 打的刷新按鈕,通過注入一些JavaScript到您的網頁它 :)
Purechat作品進行排序,試圖尋找一些代碼只是你的身體標記之前,看起來與此類似:
<script type="text/javascript">
(function() { var done = false; var script = document.createElement("script"); script.async = true; script.type = "text/javascript"; script.src = "https://www.purechat.com/VisitorWidget/WidgetScript"; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.onreadystatechange = script.onload = function (e) { if (!done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { var w = new PCWidget({ c: 'f509d702-fe1e-4761-9c6f-a386765ff3c7', f: true }); done = true; } }; })();
</script>
實際在purechat控件的HTML看起來像這樣:
<div class="purechat purechat-widget purechat-widget-collapsed purechat-bottom purechat-bottom-left">
<div class="purechat-widget-inner purechat-clearfix">
<div class="purechat-widget-header">
<div class="purechat-menu btn-toolbar">
<button class="btn btn-mini actions btn-collapse" style="display: none;"><i class="icon-minus"></i></button>
<button class="btn btn-mini actions btn-expand"><i class="icon-plus"></i></button>
</div>
<div class="purechat-widget-title purechat-widget-title-collapsed">
<img class="purechat-title-image" src="https://www.purechat.com/Content/images/icon-small.png">
<span class="purechat-widget-title-link" title="Chat with us.">Chat with us.</span>
</div>
</div>
<div class="purechat-content purechat-widget-content" style="display: none;">
<div class="purechat-enterinfo-container">
<p>Enter your name to begin!</p>
</div>
<form class="purechat-init-form" action="">
<p class="alert alert-error init-error please-entername" style="display:none;">Please enter a name.</p>
<input type="text" class="purechat-name-input" name="purechat-name-input" placeholder="Name" maxlength="40">
<input type="submit" class="btn" id="purechat-name-submit" value="Send Chat Request">
</form>
</div>
<div class="purechat-poweredby-container">
<span class="purechat-poweredby">Powered by </span><a target="_blank" href="http://www.purechat.com">PureChat.com</a>
</div>
</div>
</div>
是的,我刷新頁面,但結果是一樣的,也是谷歌克羅默和mozila甚至IE 9,我可以查看格包含純聊天,但萬一(BM-ie9,文件模式ie7標準rd),我無法在purechat內容中找到div或任何東西 – 2013-04-04 07:34:31
謝謝,我刷新頁面,但它顯示我div時,我從開發人員工具刷新:) – 2013-04-04 08:12:05