提交图像的边界在Safari和Chrome? [英] Submit image border in Safari and Chrome?

查看:99
本文介绍了提交图像的边界在Safari和Chrome?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个提交图像按钮:

I have a submit image button:

 <input id="sbutton" type="image" value="&nbsp;" />   

造型设计这样的:

Styled like that:

#sbutton {
    text-indent: -99999px;
    border: 0;
    background-image: url('submit.png'); 
    width: 201px;
    height: 37px;
}

它可以完美运行在Opera在Firefox按钮的大小大约是 10x10px 和Safari和Chrome它具有某种奇特的边界(如内部框架有),我不知道如何摆脱呢?

It works perfect in Opera in Firefox the button size is about 10x10px and in Safari and Chrome it has some kind of strange border (like iframes have), and I have no idea how to get rid of that?

感谢:)

推荐答案

从图像改变类型和提交,因为我是用CSS背景图像这个固定我的问题。

Changed type from image to submit as I was using a background image in CSS and this fixed my issue.

这篇关于提交图像的边界在Safari和Chrome?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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