这个奇怪的白色边框出现在我的HTML输入提交按钮周围是什么?

Onl*_*ere 4 html css background submit

这是一个截图.

我的CSS标记:

.submitbutton
{
    background: url("/Content/SiteImages/button.png") no-repeat scroll 0 0 transparent;
    color: white;
    cursor: pointer;
    height: 26px;
    width: 76px;
    margin-left: 8px;
    margin-top: 12px;
}
Run Code Online (Sandbox Code Playgroud)

此外,我想要拉伸背景图像以适应按钮的尺寸.目前它正在显示全尺寸(我认为).这个新HTML开发人员的任何提示?

Kok*_*kos 7

HTML按钮始终有边框,只需设置即可border:0;解决此问题.