国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > CSS > 正文

IE下Css圓角沒有的解決方法

2024-07-11 08:39:06
字體:
供稿:網(wǎng)友

在網(wǎng)頁制作時(shí),圓角的樣式在很多時(shí)候都要到,大多數(shù)都是用圖片來搞,其實(shí)圖片不圖片無所謂的,但也有的朋友比較喜歡用CSS來寫,CSS寫的話在火狐、谷歌等瀏覽器都是沒有問題的。但是在IE下就會(huì)出現(xiàn)問題,圓角就沒有了。這時(shí)候就要用到一個(gè)文件,當(dāng)時(shí)那個(gè)文件是哪里下的已經(jīng)記不清了,但用著還是挺不錯(cuò)的。由于不知道怎么上傳文件,就只能把源碼弄出來了。

test.html


<html>
<head><title>test</title>
<style type=”text/css”>
.test {
width:100px;
height:100px;
background-color: blue;
margin-bottom:10px;
border-radius: 10px;
behavior: url(ie-css3.htc);
}
</style>
</head>
<body>
<div class=”test”>
test
</div>
</body>
</html>

ie-css3.htc


–Do not remove this if you are using–
Original Author: Remiz Rahnas
Original Author URL: http://www.htmlremix.com
Published date: 2008/09/24
Changes by Nick Fetchak:
– IE8 standards mode compatibility
– VML elements now positioned behind original box rather than inside of it – should be less prone to breakage
– Added partial support for ‘box-shadow’ style
– Checks for VML support before doing anything
– Updates VML element size and position via timer and also via window resize event
– lots of other small things
Published date : 2010/03/14
http://fetchak.com/ie-css3
Thanks to TheBrightLines.com (http://www.thebrightlines.com/2009/12/03/using-ies-filter-in-a-cross-browser-way) for enlightening me about the DropShadow filter
<public:attach event=”ondocumentready” onevent=”ondocumentready(‘v08vnSVo78t4JfjH’)” />
<script type=”text/javascript”>
timer_length = 200; // Milliseconds
border_opacity = false; // Use opacity on borders of rounded-corner elements? Note: This causes antialiasing issues

// supportsVml() borrowed from http://stackoverflow.com/questions/654112/how-do-you-detect-support-for-vml-or-svg-in-a-browser
function supportsVml() {
if (typeof supportsVml.supported == “undefined”) {
var a = document.body.appendChild(document.createElement(‘div’));
a.innerHTML = ‘<v:shape id=”vml_flag1″ adj=”1″ />’;
var b = a.firstChild;
b.style.behavior = “url(#default#VML)”;
supportsVml.supported = b ? typeof b.adj == “object”: true;
a.parentNode.removeChild(a);
}
return supportsVml.supported
}

// findPos() borrowed from http://www.quirksmode.org/js/findpos.html
function findPos(obj) {
var curleft = curtop = 0;
if (obj.offsetParent) {

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 彰武县| 太保市| 长武县| 罗平县| 石棉县| 石柱| 花莲市| 牟定县| 渑池县| 秦安县| 稷山县| 会昌县| 海口市| 浪卡子县| 建平县| 鄂托克前旗| 会同县| 朝阳县| 毕节市| 克山县| 砚山县| 静乐县| 龙门县| 收藏| 汝阳县| 手游| 平利县| 凤山市| 吉木萨尔县| 泾源县| 富锦市| 阜康市| 江西省| 祁门县| 巴林左旗| 潞城市| 舞钢市| 新郑市| 咸阳市| 合山市| 咸阳市|