小编Mad*_*Rao的帖子

iframe内的链接(不在弹出窗口中)不起作用

我已经解决了其他类似的问题来解决这个问题,但在这种情况下,所有解决方案都无法正常工作.

所以这是我的示例片段的问题:

我有一个html文件,看起来像这样:

<div id="portalRight">
    <a target="_blank" href="http://ictforu.com">   <!-- this link works , it opens up another tab -->
    <ul id="subtabnav">
        <li class="datasetTab">
            <a href="#">dataset</a> <!-- Click on this will trigger the dataset iframe to be loaded thru a servlet call  -->
        </li>
        <li class="obsGraphTab" data-bind="css: { disabled: !aekos.subTabViewModel.graphTabsEnabled() }">
            <a href="#">Observation Graph</a>
        </li>
        .....
    </ul>

    <div id="dataset">
        <iframe id="dataset-frame" class="graphiframe" seamless sandbox="allow-same-origin allow-scripts"></iframe>
    </div>
    <div id="testViewer">
                <iframe id="test-viewer-frame" class="graphiframe" seamless sandbox="allow-same-origin allow-scripts"></iframe>
    </div>

</div>
Run Code Online (Sandbox Code Playgroud)

正如您所看到的,我iframe不是弹出窗口,而是出现在div元素下: …

html iframe hyperlink

7
推荐指数
1
解决办法
1万
查看次数

CSS 中的 SVG DataURI 在 Firefox 中不起作用

body {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30.000000pt' height='30.000000pt' viewBox='0 0 300.000000 300.000000' preserveAspectRatio='xMidYMid meet'><g transform='translate(0.000000,300.000000) scale(0.100000,-0.100000)' fill='#3F0607' stroke='none'><path class='node' id='node1' d='M1255 2979 c-214 -37 -373 -98 -560 -212 -105 -64 -246 -187 -333 -291 -457 -540 -483 -1307 -65 -1871 453 -611 1297 -784 1958 -402 156 91 335 250 448 399 31 42 57 80 57 84 0 4 6 15 14 23 30 34 105 191 140 293 124 359 113 724 -31 1078 -155 380 -487 695 -874 …
Run Code Online (Sandbox Code Playgroud)

css svg inline

2
推荐指数
1
解决办法
907
查看次数

使用Java Files.copy复制后出现空页的PDF文件

我试图将我的类路径中的文件复制到另一个临时位置.

这是它的代码:

    InputStream inputStream = this.getClass().getClassLoader()
            .getResourceAsStream(readmeFile);

    Path path = Paths.get(tempFilesOutputPath + File.separator + readmeFile);
    try {
        Files.copy(inputStream, path, StandardCopyOption.REPLACE_EXISTING);
        inputStream.close();

    } catch (IOException e) {
        throw e;
    }
Run Code Online (Sandbox Code Playgroud)

readMeFile有2个页面,tempFilesOutputPath文件夹中的复制文件也有两个页面,但没有任何内容.

如果我犯了一些错误或者必须以不同的方式完成,请告诉我.

干杯,Madhu

java pdf copy file

0
推荐指数
1
解决办法
1154
查看次数

标签 统计

copy ×1

css ×1

file ×1

html ×1

hyperlink ×1

iframe ×1

inline ×1

java ×1

pdf ×1

svg ×1