开发者

How do I style text input so it works on internet explorer?

I have tried EVERYTHING to be able to style开发者_如何转开发 JUST text inputs with internet explorer. Unfortunately IE doesn't support using [type=text] so that's out of the question.

I even added support for http://ie7-js.googlecode.com to my webpage with

<!--[if lt IE 9]><script src="http://ie7-js.googlecode.com/svn/trunk/lib/IE9.js"></script><![endif]-->

but no dice. I'd also like to get :hover working on my spans with IE but it doesn't work.

Any help on this would be appreciate so much. I'm new to the CSS scene and Internet Explorer keeps throwing me zingers. I even had to use a separate style sheet specifically for it :(


input.class {
   border: 1px solid #ccc;
}

<input type="text" class="class">

Just give it a class if you have to style it in IE.

That is if you want to target a specific text field only.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜