我對HTML知之甚少。我一直在尋找和解答這個問題幾個小時。我正在嘗試製作一個居中且鏈接到網站的HTML按鈕。有人可以給我這個代碼嗎?謝謝。居中html按鈕鏈接
0
A
回答
0
製作一個居中且鏈接到網站的HTML按鈕的最簡單方法。
<center>
<input type="button" value="Put Your Text Here" onClick="parent.location='http://www.google.com/'">
</center>
0
<head>
<script type="text/javascript">
function DoIt(){
window.open ('http:somewhere.net','_self',false);
}
</script>
</head>
<body>
<center>
<button onclick="DoIt()">Put Some Text Here</button>
</center>
</body>
0
將<div align='center'>buttoncode</div>
0
之間的按鈕的代碼將代碼中
之間<center>
</center>
爲我工作!
相關問題
- 1. HTML超鏈接按鈕
- 2. 將導航按鈕中的鏈接居中?
- 3. HTML垂直居中按鈕對齊
- 4. 鏈接按鈕鏈接
- 5. 如何垂直居中鏈接按鈕的文本
- 6. 實現鏈接到HTML/CSS按鈕
- 7. Html按鈕鏈接不起作用
- 8. Html單位Javascript按鈕/鏈接
- 9. HTML按鈕onclick鏈接不工作
- 10. 創建html按鈕鏈接 - 不工作
- 11. 鏈接按鈕顏色HTML/CSS
- 12. 削波HTML超鏈接按鈕,在IE7
- 13. 鏈接HTML按鈕的Java活動
- 14. wpf中的鏈接按鈕
- 15. asp.net中的鏈接按鈕?
- 16. 如何通過在HTML中按F2打開鏈接或按鈕?
- 17. Django:按鈕鏈接
- 18. GWT鏈接按鈕
- 19. 與鏈接按鈕
- 20. 的鏈接按鈕
- 21. WPF鏈接按鈕
- 22. 鏈接/按鈕3.2.4+
- 23. 居中DIV中的按鈕
- 24. div中的居中按鈕
- 25. 重新啓用按鈕,鏈接按鈕,鏈接
- 26. 使用css居中按鈕
- 27. 如何居中按鈕框?
- 28. 居中按鈕的形式
- 29. 居中jquery-ui按鈕
- 30. 我不能居中按鈕