城市直播房产教育博客汽车
快传网
汽车报价
买车新车
博客专栏
专题精品
教育留学
高考读书
房产家居
彩票视频
直播黑猫
投资微博
城市上海
政务旅游

jQuery第三十一天练习

7月19日 夜如影投稿
  htmlheadmetacharsetUTF8metanameviewportcontentwidthdevicewidth,initialscale1。0styletypetextcss{padding:0;margin:0;}body{fontsize:12background:000;fontfamily:宋体;}ul{liststyletype:}a{color:textdecoration:}。container{width:1024height:1000background:url(imagessl05。PNG)margin:0paddingtop:100}。menu{height:30lineheight:30background:url(imagesbg4。png)}。menuli{float:position:}。menulia:hover{color:000;background:url(imagesbg4。png);}。menuli。focusa{background:url(imagesbgfocus。png);}。menulia{display:float:height:30lineheight:30padding:020}。menuliul{position:left:0;background:url(imagesbg5。png);width:150border:1pxsolid000;display:}。menuliula{width:110}。one{border:1pxsolid000;top:30}。onelia:hover{background:url(imagesbg4。png);}。menuliul。two{left:150}。onelia。more{background:url(imagesarrow。png)norepeat130}。onelia。more:hover{background:url(imagesarrow。png)norepeat130}。menuliul。hdw{left:150}。menuliul。hdwq{left:150}styleheadbodyulclassmenuli菜单一ulclassoneli菜单一lili菜单二lili菜单三lili菜单四lili菜单五ulclasstwoli菜单一lili菜单二lili菜单三lili菜单四lili菜单五ulclasshdwli菜单一lili菜单二lili菜单三lili菜单四lili菜单五ulclasshdwqli菜单一lili菜单二lili菜单三lili菜单四lili菜单五liulliulliulliullili菜单二ulclassoneli菜单一lili菜单二lili菜单三ulclasstwoli菜单一lili菜单二lili菜单三ulclasshdwli菜单一lili菜单二lili菜单三lili菜单四lili菜单五liullili菜单四liulliullili菜单三lili菜单四lili菜单五ulclassoneli菜单一lili菜单二lili菜单三liulliulbodyhtml
  DDbelatedPNG。jsDDbelatedPNG:AddsIE6support:PNGimagesforCSSbackgroundimageandHTMLIMG。Author:DrewDillerEmail:drew。dillergmail。comURL:http:www。dillerdesign。comexperimentDDbelatedPNGVersion:0。0。8aLicensedundertheMITLicense:http:dillerdesign。comexperimentDDbelatedPNGlicenseExampleusage:DDbelatedPNG。fix(。pngbg);argumentisaCSSselectorDDbelatedPNG。fixPng(someNode);argumentisanHTMLDomElementPLEASEREAD:AbsolutelyeverythinginthisscriptisSILLY。Iknowthis。IEsrenderingofcertainpixelsdoesntmakesense,soneitherdoesthiscode!varDDbelatedPNG{ns:DDbelatedPNG,imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){enableVMLif(document。namespaces!document。namespaces〔this。ns〕){document。namespaces。add(this。ns,urn:schemasmicrosoftcom:vml);}},createVmlStyleSheet:function(){styleVML,enablebehaviorsJustincaselotsofotherdevelopershaveaddedlotsofotherstylesheetsusingdocument。createStyleSheetandhitthe31limitmark,letsnotusethatmethod!furtherreading:http:msdn。microsoft。comenuslibraryms531194(VS。85)。aspxvarscreenStyleSheet,printStyleSscreenStyleSheetdocument。createElement(style);screenStyleSheet。setAttribute(media,screen);document。documentElement。firstChild。insertBefore(screenStyleSheet,document。documentElement。firstChild。firstChild);if(screenStyleSheet。styleSheet){screenStyleSheetscreenStyleSheet。styleSscreenStyleSheet。addRule(this。ns:,{behavior:url(defaultVML)});screenStyleSheet。addRule(this。ns:shape,position:);screenStyleSheet。addRule(img。this。nssizeFinder,behavior:border:position:zindex:1;top:10000visibility:);largenegativetopvalueforavoidingverticalscrollbarsforlargeimages,suggestedbyJamesOBrien,http:www。thanatopsic。orghendrikthis。screenStyleSheetscreenStyleSAddaprintmediastylesheet,forpreventingVMLartifactsfromshowingupinprint(includingpreview)。ThankstoRmiPrvostforautomatingthis!printStyleSheetdocument。createElement(style);printStyleSheet。setAttribute(media,print);document。documentElement。firstChild。insertBefore(printStyleSheet,document。documentElement。firstChild。firstChild);printStyleSheetprintStyleSheet。styleSprintStyleSheet。addRule(this。ns:,{display:none!});printStyleSheet。addRule(img。this。nssizeFinder,{display:none!});}},readPropertyChange:function(){varel,display,v;elevent。srcEif(!el。vmlInitiated){}if(event。propertyName。search(background)!1event。propertyName。search(border)!1){DDbelatedPNG。applyVML(el);}if(event。propertyNamestyle。display){display(el。currentStyle。displaynone)?none:for(vinel。vml){if(el。vml。hasOwnProperty(v)){el。vml〔v〕。shape。style。}}}if(event。propertyName。search(filter)!1){DDbelatedPNG。vmlOpacity(el);}},vmlOpacity:function(el){if(el。currentStyle。filter。search(lpha)!1){vartransel。currentStyle。transparseInt(trans。substring(trans。lastIndexOf()1,trans。lastIndexOf())),10)100;el。vml。color。shape。style。filterel。currentStyle。completeguessworkel。vml。image。fill。completeguesswork}},handlePseudoHover:function(el){setTimeout(function(){wouldntworkasintendedwithoutsetTimeoutDDbelatedPNG。applyVML(el);},1);},Thisisthemethodtouseinadocument。param{String}selectorREQUIREDaCSSselector,suchasdoc。containerfix:function(selector){if(this。screenStyleSheet){varselectors,i;selectorsselector。split(,);multipleselectorssupported,noneedformultiplecallstothisanymorefor(i0;iselectors。i){this。screenStyleSheet。addRule(selectors〔i〕,behavior:expression(DDbelatedPNG。fixPng(this)));seemstoexecutethefunctionwithoutaddingittothestylesheetinteresting。。。}}},applyVML:function(el){el。runtimeStyle。cssTthis。vmlFill(el);this。vmlOffsets(el);this。vmlOpacity(el);if(el。isImg){this。copyImageBorders(el);}},attachHandlers:function(el){varself,handlers,handler,moreForAs,a,h;handlers{resize:vmlOffsets,move:vmlOffsets};if(el。nodeNameA){moreForAs{mouseleave:handlePseudoHover,mouseenter:handlePseudoHover,focus:handlePseudoHover,blur:handlePseudoHover};for(ainmoreForAs){if(moreForAs。hasOwnProperty(a)){handlers〔a〕moreForAs〔a〕;}}}for(hinhandlers){if(handlers。hasOwnProperty(h)){handlerfunction(){self〔handlers〔h〕〕(el);};el。attachEvent(onh,handler);}}el。attachEvent(onpropertychange,this。readPropertyChange);},giveLayout:function(el){el。style。zoom1;if(el。currentStyle。positionstatic){el。style。}},copyImageBorders:function(el){varstyles,s;styles{borderStyle:true,borderWidth:true,borderColor:true};for(sinstyles){if(styles。hasOwnProperty(s)){el。vml。color。shape。style〔s〕el。currentStyle〔s〕;}}},vmlFill:function(el){if(!el。currentStyle){}else{varelStyle,noImg,lib,v,img,imgLelStyleel。currentS}for(vinel。vml){if(el。vml。hasOwnProperty(v)){el。vml〔v〕。shape。style。zIndexelStyle。zI}}el。runtimeStyle。backgroundCel。runtimeStyle。backgroundInoIif(elStyle。backgroundImage!noneel。isImg){if(!el。isImg){el。vmlBgelStyle。backgroundIel。vmlBgel。vmlBg。substr(5,el。vmlBg。lastIndexOf())5);}else{el。vmlBgel。}if(!lib。imgSize〔el。vmlBg〕){determinesizeofloadedimageimgdocument。createElement(img);lib。imgSize〔el。vmlBg〕img。classNamelib。nssizeFimg。runtimeStyle。cssTextbehavior:position:left:10000top:10000border:margin:0;padding:0;;makesuretosetbehaviortononetopreventaccidentalmatchingofthehelperelements!imgLoadedfunction(){this。widththis。offsetWweirdcachebustingrequirement!this。heightthis。offsetHlib。vmlOffsets(el);};img。attachEvent(onload,imgLoaded);img。srcel。vmlBg;img。removeAttribute(width);img。removeAttribute(height);document。body。insertBefore(img,document。body。firstChild);}el。vml。image。fill。srcel。vmlBg;noI}el。vml。image。fill。on!noIel。vml。image。fill。el。vml。color。shape。style。backgroundColorelStyle。backgroundCel。runtimeStyle。backgroundIel。runtimeStyle。backgroundC},IEcantfigureoutwhatdowhentheoffsetLeftandtheclientLeftaddupto1,andtheVMLendsupgettingfuzzy。。。sowehavetopushenlargethingsby1pixelandthenclipofftheexcessvmlOffsets:function(el){varthisStyle,size,fudge,makeVisible,bg,bgR,dC,altC,b,c,v;thisStyleel。currentSsize{W:el。clientWidth1,H:el。clientHeight1,w:this。imgSize〔el。vmlBg〕。width,h:this。imgSize〔el。vmlBg〕。height,L:el。offsetLeft,T:el。offsetTop,bLW:el。clientLeft,bTW:el。clientTop};fudge(size。Lsize。bLW1)?1:0;vmlshape,left,top,width,height,originmakeVisiblefunction(vml,l,t,w,h,o){vml。coordsizew,h;vml。coordorigino,o;vml。pathm0,0lw,0lw,hl0,vml。style。vml。style。vml。style。vml。style。};makeVisible(el。vml。color。shape,(size。L(el。isImg?0:size。bLW)),(size。T(el。isImg?0:size。bTW)),(size。W1),(size。H1),0);makeVisible(el。vml。image。shape,(size。Lsize。bLW),(size。Tsize。bTW),(size。W),(size。H),1);bg{X:0,Y:0};if(el。isImg){bg。XparseInt(thisStyle。paddingLeft,10)1;bg。YparseInt(thisStyle。paddingTop,10)1;}else{for(binbg){if(bg。hasOwnProperty(b)){this。figurePercentage(bg,size,b,thisStyle〔backgroundPositionb〕);}}}el。vml。image。fill。position(bg。Xsize。W),(bg。Ysize。H);bgRthisStyle。backgroundRdC{T:1,R:size。Wfudge,B:size。H,L:1fudge};thesearedefaultsforrepeatofanykindaltC{X:{b1:L,b2:R,d:W},Y:{b1:T,b2:B,d:H}};if(bgR!repeatel。isImg){c{T:(bg。Y),R:(bg。Xsize。w),B:(bg。Ysize。h),L:(bg。X)};thesearedefaultsfornorepeatclipsdowntotheimagelocationif(bgR。search(repeat)!1){nowletsreverttodCforrepeatxorrepeatyvbgR。split(repeat)〔1〕。toUpperCase();c〔altC〔v〕。b1〕1;c〔altC〔v〕。b2〕size〔altC〔v〕。d〕;}if(c。Bsize。H){c。Bsize。H;}el。vml。image。shape。style。cliprect(c。Tpx(c。Rfudge)pxc。Bpx(c。Lfudge)px);}else{el。vml。image。shape。style。cliprect(dC。TpxdC。RpxdC。BpxdC。Lpx);}},figurePercentage:function(bg,size,axis,position){varhorizontal,horizontal(axisX);switch(position){caseleft:casetop:bg〔axis〕0;casecenter:bg〔axis〕0。5;caseright:casebottom:bg〔axis〕1;default:if(position。search()!1){bg〔axis〕parseInt(position,10)100;}else{}}bg〔axis〕Math。ceil(fraction?((size〔horizontal?W:H〕bg〔axis〕)(size〔horizontal?w:h〕bg〔axis〕)):parseInt(position,10));if(bg〔axis〕20){bg〔axis〕;}returnbg〔axis〕;},fixPng:function(el){el。style。varlib,els,nodeStr,v,e;if(el。nodeNameBODYel。nodeNameTDel。nodeNameTR){}el。isIif(el。nodeNameIMG){if(el。src。toLowerCase()。search(。png)!1){el。isIel。style。}else{}}elseif(el。currentStyle。backgroundImage。toLowerCase()。search(。png)1){}libDDbelatedPNG;el。vml{color:{},image:{}};els{shape:{},fill:{}};for(vinel。vml){if(el。vml。hasOwnProperty(v)){for(einels){if(els。hasOwnProperty(e)){nodeStrlib。ns:e;el。vml〔v〕〔e〕document。createElement(nodeStr);}}el。vml〔v〕。shape。el。vml〔v〕。shape。appendChild(el。vml〔v〕。fill);el。parentNode。insertBefore(el。vml〔v〕。shape,el);}}el。vml。image。shape。Dontshowblankwhiteshapeanglewhenwaitingforimagetoload。el。vml。image。fill。Makesimageshowup。el。vml。color。fill。Actuallygoingtoapplyvmlelementsstyle。backgroundColor,sohidethewhiteness。lib。attachHandlers(el);lib。giveLayout(el);lib。giveLayout(el。offsetParent);el。vmlIlib。applyVML(el);Render!}};try{document。execCommand(BackgroundImageCache,false,true);TredoSoftMultipleIEdoesntlikethis,sotry{}it}catch(r){}DDbelatedPNG。createVmlNameSpace();DDbelatedPNG。createVmlStyleSheet();
  效果图:
投诉 评论 转载

吴金贵败笔换人,申花37岁国脚踢不动了,排名连跌2位杨旭创纪吴金贵败笔换人,申花37岁国脚踢不动了,排名连跌2位,杨旭创纪录巴索戈离开申花参加世界杯,另一名外援博拉尼奥斯,也没有进入到对阵成都蓉城的大名单当中。刘若钒则是缺席,无缘……胃你还好吗?烧烤、奶茶、小龙虾过度食用辛辣、生冷的食物很容易导致患上脾胃疾病,出现不想吃饭、恶心、呕吐、胃胀、腹泻、疲劳等问题,这很可能是胃炎在作祟。胃炎患者的饮食护理应注意饮……jQuery第三十一天练习htmlheadmetacharsetUTF8metanameviewportcontentwidthdevicewidth,initialscale1。0styletypet……跳水梦之队单日揽3金,全红婵陈芋汐速胜夺冠,王宗源成就大满贯10月21日,2022年跳水世界杯在德国柏林展开第二个比赛日角逐,决出了三个项目的金牌。其中女子双人10米台决出本届赛事首金,陈芋汐全红婵组合轻松战胜美国组合,摘得两人世界杯首……体坛非人类的肌肉,博尔特的小腿泰森水桶粗的脖子军神的鬼背体坛拥有出色的肌肉的运动员很多,毕竟他们就是靠这个吃饭,肌肉不会差。不过有些天赋异禀,他们的肌肉就像是非人类存在,我们普通人即使练到受伤,也很难练出他们的肌肉造型或者是围度。在……为什么买国行switch被叫做国行烈士?为什么大家都不推荐购买国行Switch?明明国行有更好的一年保修。1、国行switch不能登录外服,购买外服游戏。也就是说国行玩家只能购买国行游戏。2、国行swit……轻易打破吉尼斯世界纪录的中国柔术女王刘藤绝非一日之功中国柔术女王刘藤刘藤出生于一个艺术世家,自小对艺术有一定的天赋,加上父母从事戏曲专业,这在刘藤幼小的心灵里深深地刻下了艺术的烙印,埋下了一颗艺术的种子。他五岁时就经常跟随……回来了!消失465天!伦纳德终于回来了据雅虎体育报道,快船官方宣布,伦纳德已经获准参加5V5的训练。快船总裁劳伦斯弗兰克接受采访时透露:球队不会强迫伦纳德去做什么,或者不去做什么。但他自己什么都想做,想尝试一下。……iPhone14外媒测评出炉,iPhone13价比百元机刷新9月14日,iPhone14系列评测解禁,多家媒体给出相关评测,多家国内媒体对iPhone14系列赞不绝口。值得一提的是,由于iPhone14新机的发布,导致iPhone……不到200元的漫步者M30桌面音箱外放音质清澈透亮不愧是老牌漫步者桌面音箱M30的正上方有一块玻璃盖板,上面有五个硅胶按键,在前排两个按键的中间则是隐藏的麦克风。按键的手感不错,按动有清脆的响声,而且本身中间隆起的设计,在平视的时候依然……不想糖尿病越来越严重?这些吃饭习惯,早改早好糖尿病是种慢性疾病,与日常饮食息息相关,如果饮食控制不好,那一切都白搭。不少糖友存在一些饮食误区,从而影响血糖的控制,导致吃药不少、血糖却不好,延误了病情,以下这些吃饭习……分辨率高并不代表视频画质就绝对好分辨率高就代表视频的画质好了吗?并不是这么简单,决定视频画质的因素有很多,之前有朋友问我,为什么会出现1080p的片源看起来比4K视频细节都更好的情况,这一期就来说说,影响视频……
负债终将成为你我心中最难以诉说的痛浪姐3主题曲镜头好真实!皱纹泪沟清晰可见,少上滤镜反获赞根据人类DNA信息分析,苏美尔人来自东亚恶灵飞段胜率成功登顶,秽土斑ban率前三,须佐佐助持续热门虽创造五年三冠,但马布里已重启巅峰之路,这不,新惊马上到来官宣!巴黎奥运会乒乓球资格赛体系国乒单打名额还是内部决定是金子总会发光!你敢相信吗,原来他们都是二轮秀华为将为老旧手机推出系统云翻新功能为冬奥会贡献首钢智慧,潘晓智是我一生的骄傲与光荣JWST可能已经打破了人类所见过的最遥远银河系纪录重磅来袭7月26油价下调,或有望回7元时代出于好心?别人送的旧衣服最好别穿
白酒新国标实施在即,会引起大面积的价格震荡吗?很有深度的幽默笑段莱克空气净化器好吗作文可用的100个文学常识小学生喜迎十九大征文真实的美国火龙果如何采收走进时尚经典香奈儿的时尚腔调精品春二年级春雨作文300字合集八篇避免怀上唇腭裂宝宝,孕期要如何预防?热文万圣节是几月几日2020共享充电宝还有前景吗?市场是不是已经被饱和了?

友情链接:中准网聚热点快百科快传网快生活快软网快好知文好找江西南阳嘉兴昆明铜陵滨州广东西昌常德梅州兰州阳江运城金华广西萍乡大理重庆诸暨泉州安庆南充武汉辽宁