我的網頁中有一個腳本,該腳本顯示具有當前匯率的表格,但是當某人單擊該表格時,它會直接顯示匯率網頁,并且我希望它在新的標簽頁中打開。我已將target =“ _ blank”添加到href中,但仍將頁面重定向到交換網站。<div style="margin-top: 30px;"> <div style="margin: 0px; padding: 0px; border: 2px solid rgb(136, 136, 136); width: 195px; background-color: transparent;"> <div style="width: 100%; border-bottom: 1px solid rgb(136, 136, 136); margin: 0px; padding: 0px; text-align: center; color: rgb(0, 0, 0); background-color: transparent;"> <a href="https://fx-rate.net/ILS/" target="_blank" style="text-decoration: none; font-size: 14px; font-weight: bold; text-align: center; color: rgb(0, 0, 0);"> <img src="https://fx-rate.net/images/countries/il.png" style="margin: 0px; padding: 0px; border: none;"> Tipo de cambio del nuevo shekel israelí </a> </div> <script type="text/javascript" src="https://fx-rate.net/fx-rates2.php?label_name=Tipo de cambio del nuevo shekel israelí&lab=1&width=195¤cy=ILS&cp1_Hex=000000&cp2_Hex=FFFFFF&cp3_Hex=e9e9e9&hbg=0&flag_code=il&length=short&label_type=country_name&cp=000000,FFFFFF,e9e9e9&cid=USD,EUR,GBP&lang=es"></script> </div></div>
如何在新選項卡中打開腳本中的src =“”
一只名叫tom的貓
2021-04-09 14:15:22