我正在使用GWT来渲染控件。在Safari(即webkit)中,但只有Safari(即不是Chrome的分支),当浏览器处于隐私浏览模式时,一个控件无法显示,它根本不存在,只有一个控件。
有人知道使用隐私浏览模式的webkit的限制/错误吗?这是html,我在前面道歉,但这就是GWT做的事情;)
基本上它是一个按钮,左边是图像,右边是文本,点击它会弹出一个窗口。
Tbh,我很挣扎,因为在视图源中显示的HTML绝对不像你在开发人员工具模式中看到的HTML,所以我在想,当我查看源代码时,我实际上并没有看到按钮,而是弹出窗体并在隐私浏览模式下,它以某种方式不会显示它应该显示。
您在下面看到的代码是我在开发人员工具模式(F12)中看到的HTML,但是当我查看'view source'时,它绝对不是这样的,而是我看到的只是实际渲染的表单代码。
<td style="width: 222px; padding: 0px;">
<div id="com.xxx.test.portal.provider.datasearch.client.dataSearch-dataSearch" widgetclass="com.xxx.test.portal.provider.datasearch.client.dataSearch">
<table cellspacing="0" cellpadding="0" style="width: 100%;">
<tbody>
<tr>
<td align="left" style="vertical-align: top;">
<div>
<div class="com-sencha-gxt-core-client-resources-CommonStyles-CommonStylesDefaultAppearance-CommonDefaultStyles-inlineBlock com-sencha-gxt-core-client-resources-CommonStyles-CommonStylesDefaultAppearance-CommonDefaultStyles-unselectable" __gwtcellbasedwidgetimpldispatchingfocus="true" __gwtcellbasedwidgetimpldispatchingblur="true">
<div class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonCellXXXStyle-button com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonCellXXXStyle-small" style="">
<table hidefocus="-1" class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-frame com-sencha-gxt-core-client-resources-CommonStyles-CommonStylesDefaultAppearance-CommonDefaultStyles-noFocusOutline" style="" tabindex="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-topLeft">
</td>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-top">
</td>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-topRight">
</td>
</tr>
<tr>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-left">
<div>
</div>
</td>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-contentArea">
<div class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-content">
<div class=" com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonCellXXXStyle-iconLeft">
<table cellpadding="0" cellspacing="0" class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonCellXXXStyle-mainTable">
<tbody>
<tr>
<td valign="middle" class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonCellXXXStyle-iconWrap">
<img onload="this.__gwtLastUnhandledEvent="load";" src="https://tst01.iop.test.xxx.com/cin/CIN/clear.cache.gif" style="width: 16px; height: 16px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACOElEQVR42mNgoCbwztwi6JW3sRKIF3vlbch2yFrFQ7Rm37TNXJ75GxqBGn8A8X/PvA1vgHRFaOgqZqIMcC/cpA3U8A2kGQk/cM9dp0+UAR75m0zRNP/3zt/wzC5llRNMTffOi9yTN142mbzxnBSGAZ65q0Q9czfsQDbANXvdgoT69QIg+Zlbr5pPWX9p/uT1l5ZNXndp3aQNl9InbbvNjuaKjepAQ/aD/Z+/cZtbziZFsM2rLirO2HJlLVDzpMnrLjpN2nAxbvKGi0eA/DSwRoeE/RxA52Z55a5P8C3eLOKVv8HcO3eDrXvW+hzvvPVpFdMPF8/aemVh36orQjDLgIZUAV2yERZ1K4FO/gTEz4AxEQdSABQr8srd8MExfc2HhMadTydvuDQJ2bWT1l1KBbpgF0hhPVrgvfbKX7/XPWf9W5fMtf+Dyrb8r5l5/D/QC8+nAv1dv38/y5S1F40mrb98eNL6SzUgAy6gh75b1vr/7tnr/6e27fnft+b8f6Bt/6tmHnvRufTMvumbLm+GaZ65+YwIA9C/R5A1e+Ss/x9UuuV/5Yxj/2duvvq/b/WF/3ENO/8HFG/a1brwhN7sLdeNJ627og+KUkjyzdsYAdPsmbv+vzeQLphw6P+sbVf/18w+/j+kfAvQRWu/26euScWagELrV7F55m9MBRpwH2ZIRPX2/8kte/77FIBd9MwrZ2MGMEmz4UyFDvX7WcBpAGLQVI/s9Zvcs9ZN98zdmAQ0UJno/EAOAADItF8T6DTuJgAAAABJRU5ErkJggg==) no-repeat 0px 0px;" border="0" alt="">
</td>
<td valign="middle" style="">
<div class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonCellXXXStyle-text">Search for a data</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</td>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-right">
<div>
</div>
</td>
</tr>
<tr>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-bottomLeft">
</td>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-bottom">
</td>
<td class="com-XXX-test-gxt-theme-blue-client-button-ButtonCellXXXAppearance-ButtonTableFrameXXX-bottomRight">
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>