use*_*143 1 html css internet-explorer css3
<style>
border-radius:10px;
</style>
<div class='radius'> <?= echo $score . 'score';?></div>
Run Code Online (Sandbox Code Playgroud)
它在IE8中不起作用
Internet Explorer 6-8不支持Border-Radius,在IE 9中使用border-radius:10px.
它可以与Jquery或 PIE CSS一起使用
在HTML中添加jquery.js和jquery.corner.js:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://malsup.github.com/jquery.corner.js"></script>
Run Code Online (Sandbox Code Playgroud)
使用Javascript
$('.radius').corner();
Run Code Online (Sandbox Code Playgroud)
对于border-radius:10px使用
$('.radius').corner("10px");
Run Code Online (Sandbox Code Playgroud)
更多示例:http://jquery.malsup.com/corner/
| 归档时间: |
|
| 查看次数: |
1845 次 |
| 最近记录: |