热门关键字:
替换元素(Replaced elements)与非替换元素(Nonreplaced elements)

除了如img、input、iframe等元素,大多数元素都是非替换元素。替换元素的内容区域会被替换为其指向的外部对象。比如,如果img元素不带src属性的话,它不指向任何内容,在文档中没有意义,也就不是替换元素;如果img的src链接了外部图片,那么它的内容区域将被图片替换,此时就是替换元素。

286
2020/11/12 20:17:20
0
View Details
pc端页面新整理的两个小技巧

pc端页面新整理的两个小技巧1、如果该页面只适合在电脑上进行浏览,请添加以下代码<metaname="applicable-device"content="pc">2、判断非移动端设备javascript代码(function(){varua=navigator.userAgent;if(!(!ua.match(/iPhone|iPod/)&&!ua.matc...

1261
2015/6/29 16:03:36
0
View Details
javascript常用的Date对象扩展

javascript常用的Date对象扩展Date.getDaysInMonth=function(year,month){vardays=0;switch(month){case1:case3:case5:case7:case8:case10:case12:days=31break;case4:case6:case9:case11:days=30...

956
2015/5/26 13:18:50
0
View Details
javascript常用的String对象扩展

javascript常用的String对象扩展<scripttype="text/javascript">if(typeofString.prototype.ltrim=='undefined'){String.prototype.ltrim=function(){vars=this;s=s.replace(/^\s*/g,'');returns;}}if(typeofS...

982
2015/5/26 13:16:45
0
View Details