开发者

Why i cant see this image button on IE8 with this CSS?

开发者 https://www.devze.com 2023-01-27 07:12 出处:网络
So, this is the html code for the button <input type=\"submit\" name=\"logueo\" value=\"log\" id=\"sendbu\"/>

So, this is the html code for the button

<input type="submit" name="logueo" value="log" id="sendbu"/>

And this is the css style

#sendbu     { wi开发者_JAVA百科dth: 50px; height: 34px; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 12px; background: transparent url(lock.png) no-repeat center top; border: 0;   text-indent: -1000em; cursor: pointer; cursor: hand; }

All this works on Chrome and Firefox, but in IE the button seams to dont exist. Thanks for the help.


@domingo why text-indent - 1000em , ie does a different calculation on negative margins , try to remove that and check once


font-size: 0; works sometimes. I'm sure there are sites that use negative indent that work in IE.


Try: background: transparent url(lock.png) center top no-repeat;, and also the 'name' and 'id' properties should match, different flavours of Browser use 'name' differently.

0

精彩评论

暂无评论...
验证码 换一张
取 消