2013-01-09 74 views
0

好了,所以這是我的代碼和問題是,我有一個按鈕和一個提交,但不知什麼原因在提交按鈕上的文字是錯誤的按鈕位置問題

這裏是代碼

<input type="button" id="openerCol" style = "width: 100px; height: 25px" value="Add new column" onclick="showPartial()"/> 
<br/> 
<input type="button" id="openerInsCol" style = "width: 100px; height: 25px" value="Insert column" onclick="showPartial()"/> 
<br/> 
<input type="button" id="openerUpCol" style = "width: 100px; height: 25px" value="Update column" onclick="showPartial()"/> 
<br/> 
<input type="button" id="opener3" style = "width: 100px; height: 25px" value="Delete column" onclick="showPartial()"/> 
<br/> 
<input type="submit" name="Index" style = "width: 100px; text-align: top; height: 25px"; value="Add Row" /> 
<br/> 
<input type="button" id="openerDelR" style = "width: 100px; height: 25px" value="Delete row" onclick="showPartial()"/> 
<br/> 
<input type="button" id="openerEditCell" style = "width: 100px; height: 25px" value="Edit cell" onclick="showPartial()"/> 

這裏你可以看到屏幕截圖http://tinypic.com/r/rwpc48/6

有什麼想法嗎?

+0

的所有屬性在哪裏提交按鈕? –

+0

輸入類型=「提交」是,你可以在截圖 – bogdanv87

+0

看到一個與增值行 – bogdanv87

回答

2

你放錯地方的樣式屬性的分號。我已經修復線,你

<input type="submit" name="Index" style = "width: 100px; text-align: top; height: 25px;" value="Add Row" /> 
+0

確定我固定的,但問題仍然存在文本仍處於相同的地方 – bogdanv87

0

有可能與;height: 25px";

所以只要刪除分號問題。

我只是複製並粘貼您的代碼,並將其取出;後看起來不錯。

以下是演示:JSFiddle

+0

由於某種未知的原因對我來說是一樣的 – bogdanv87

0
style = "width: 100px; text-align: top; height: 25px"; 

應該

style = "width: 100px; text-align: top; height: 25px;" 
+0

這是不是問題或至少不是唯一的 – bogdanv87

0

嘗試刪除 「文本對齊:首位;」或嘗試複製其他按鈕

+0

類型必須提交 – bogdanv87

+0

如果我改變類型按鈕它沒關係 – bogdanv87

+0

可能是你有CSS,覆蓋文本對齊:頂部提交。 – banana