【发布时间】:2011-03-22 16:49:01
【问题描述】:
我的页面中有一个项目:
<div class="rounded">
<h2>Heading Text</h2>
<ul>
<li><a href="/default.aspx">Summary link</a></li>
<li><a href="/default.aspx">Summary link</a></li>
<li><a href="/default.aspx">Summary link</a></li>
</ul>
<p>or... some text or whatever</p>
</div>
与此块关联的样式是:
.rounded{
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
background:url("10x10.50percentalpha_white.png") repeat scroll left top transparent;
height:270px;
overflow:hidden;
padding:0 0 5px;
}
.rounded h2{
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-right-radius:5px;
-webkit-border-top-left-radius:5px;
border-top-right-radius:5px;
border-top-left-radius:5px;
background:url("wide_rl_fade.png") repeat-y scroll right top transparent;
color:#C4161C;
font-size:130%;
padding:10px 20px;
text-align:left;
text-transform:uppercase;
}
当然,这在 FF 和 safari(和歌剧)中是一种享受。但 IE 什么也没做(我多么讨厌 IE) 我做了一些搜索,找到了 DD_roundies 解决方案。 http://www.filamentgroup.com/lab/achieving_rounded_corners_in_internet_explorer_for_jquery_ui_with_dd_roundi/ 但遗憾的是,这只是删除了背景,从而呈现了具有透明背景的列表和标题文本 - 当不使用不透明度或 bg 图像时工作正常,但这显然不适合我的问题...... 有人知道解决方案吗? 我当然可以放弃 bg 图像,但这似乎是让不透明度跨浏览器工作的最可靠方法..
谢谢
自然
【问题讨论】:
标签: javascript css internet-explorer rounded-corners