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;
}
任何人說看到有什麼不對?
新窗口或新標籤頁? – Shank
'_blank'似乎只在最新的瀏覽器中打開新標籤頁 – Shank