IE8的边框半径 [英] Border Radius for IE8

查看:147
本文介绍了IE8的边框半径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IE8的边框半径有问题,直到现在我使用pie.js,但我不推荐这个js库,因为是buggy。如果你有一个小网站没有很多html页面,那么使用该库是不可能的,但如果你有一个重的应用程序,其中使用许多不同的框架,那么是不可能使用它。 CurvyCorners或其他大型库的行为相同。

I have a problem with border radius on IE8, till now I used pie.js but I don't recommend this js library because is buggy. If you have a small site with not many html pages, it is more than ok to use that library, but if you have a heavy application in which many different frameworks are used, then is impossible to use that. Same behavior for CurvyCorners or other mega libraries.

因此,如果任何人可以帮助我使用一个小jQuery或javascript插件做IE 8上的border-radius,我会感激生活。

So if anyone can help me with a small jQuery or javascript plugin to do just border-radius on IE 8 I'll be grateful for life.

推荐答案

尝试:

需要:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://malsup.github.com/jquery.corner.js"></script>

Javascript:

Javascript:

$('.box').corner();

HTML:

<div class="box">Hello</div>

CSS:

box{
  width:150px;
  height:28px;
  padding:10px;
}

更多示例:
http://jquery.malsup.com/corner/

这篇关于IE8的边框半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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