具有嵌入式链接的iframe

时间:2019-05-13 22:48:59

标签: css iframe sharepoint

几天来我一直在尝试解决以下问题,但没有结果。 我尝试使用ID将指向链接到iframe的链接的按钮(链接内部有更多链接)制成

只要我不在iframe中的嵌入式链接内单击,链接就会很好地加载。如果单击iframe中的任何链接,则下次单击另一个按钮时,该链接将在新标签页中打开,而忽略原始目标(iframe的ID)。

我正在使用共享点,其他链接来自powerapps

CSS代码

iframe代码

  <iframe name="myFrame" class="body"  onclick="return false;" width=1200px height=800px style="background-color: #1A1B1C;"></iframe>

链接代码

<a href="https://grupogtdlatam.sharepoint.com/sites/CentroDocumentacion/SitePages/Paginadeprueba.aspx#escalamientos" target="myFrame" name="BOTON1" class="BOTON1">ESCALAMIENTOS</a>     

按钮样式代码

.BOTON1 {
color: #E4E4E4 !important;
border: solid 2px;
border-radius:4px;
font-family: "proxima nova";
font-weight:100;
font-size: 12px;
padding: 10px 74px;
background-color: #1B1E4E;
}

0 个答案:

没有答案