2016-08-16 80 views
0

我一直試圖讓搜索結果在新窗口打開幾個小時,但沒有運氣。我究竟做錯了什麼?如何在新窗口中打開搜索結果?

<form id="tfnewsearch" method="get" action="http://www.maps.google.com" target="_blank"> 
    <input type="text" class="tftextinput" name="q" size="21" maxlength="120">  
    <input type="submit" value="search" class="tfbutton"> 
</form> 

編輯:添加CSS這裏

#tfnewsearch{ 
    float:right; 
    padding:20px; 
} 
.tftextinput{ 
    margin: 0; 
    padding: 5px 15px; 
    font-family: Arial, Helvetica, sans-serif; 
    font-size:14px; 
} 
.tfbutton { 
    margin: 0; 
    padding: 5px 15px; 
    font-family: Arial, Helvetica, sans-serif; 
    font-size:14px; 
    outline: none; 
    cursor: pointer; 
    text-align: center; 
    text-decoration: none; 
    color: #ffffff; 
} 
.tfbutton:hover { 
    text-decoration: none; 

} 
/* Fixes submit button height problem in Firefox */ 
.tfbutton::-moz-focus-inner { 
    border: 0; 
} 

任何人說看到有什麼不對?

+0

新窗口或新標籤頁? – Shank

+0

'_blank'似乎只在最新的瀏覽器中打開新標籤頁 – Shank

回答

0

你做得對。我已經複製並粘貼了你的代碼並測試了它,它工作正常,請檢查你的css clases,或者你沒有遺漏任何要關閉的標籤

+0

我什麼都看不到,也許我現在只是盲目地爲它主演了幾個小時。在問題中添加了CSS代碼 – anita