网站的HTML按钮 [英] HTML Button to Website

查看:93
本文介绍了网站的HTML按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.我已经编写了这个小的HTML代码,以使按钮一个接一个地出现.我将这些链接到网站,因此当有人访问网站时,他可以使用按钮查看下一个网站.我目前有4个进入网页的按钮.我发现我的代码会将奇怪的东西添加到URL的末尾,并阻止其工作.这是一个示例:

Hello. I have written this small HTML code to make buttons appear one after the other. I link these to websites and so when someone visits a website he can then view the next one using the buttons. I currently have 4 buttons that go to web pages. I am finding that my code will add weird things onto the end of my url and prevent it from working. Here is an example:

<div><form method="GET" action="http://tinyurl.com/xtremetop100kingkraftvote" target="_blank" style="text-align: center;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><input id="vote2" disabled="" name="vote3" value="     XtremeTop100    " type="submit" onclick="document.getElementById('vote3').disabled=false">
</form></div>



由于某些原因,当我在网站上按下此按钮时,它会显示以下网址:
http://tinyurl.com/xtremetop100?vote3= ++++ XtremeTop100 +++

这发生在我的多个按钮上.有人知道为什么吗?



For some reason when I hit this button on my website it comes up with this url:
http://tinyurl.com/xtremetop100?vote3= ++++XtremeTop100+++

This happens to more than one of my buttons. Anyone know why?

推荐答案

您的代码似乎在URL中包含空格或一些空格字符-不允许使用,因此替换为Wi plusses
It looks like your code has spaces or some white space characters in the URL - which isn''t allowed And so is replaced Wi plusses


您的代码似乎在URL中包含空格或一些空格字符-不允许,因此被加号代替了
It looks like your code has spaces or some white space characters in the URL - which isn''t allowed And so is replaced With plusses


这篇关于网站的HTML按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆