iframe src="http://www.youtube.com/embed/83YLe7uxQSk" onload="function onload(event) {
javascript:
if (this.width > 450) {
this.width = 450;
}
}" style="width: 640px; height: 360px; border: 0px none;" />
再编辑的话,code马上变成:
所有跟帖:
• 你这个是什么编辑状态?是博客的编辑,还是浏览器的编辑?也可以用这个代码抑制博客修改宽度 -☆003☆- ♀ (126 bytes) () 11/26/2012 postreply 09:40:31
• 就是博客的编辑状态."HTML源代码"状态. -闽姑- ♀ (0 bytes) () 11/26/2012 postreply 09:43:51
• 你用的是什么浏览器? -☆003☆- ♀ (0 bytes) () 11/26/2012 postreply 09:50:43
• 火狐. -闽姑- ♀ (0 bytes) () 11/26/2012 postreply 10:11:19
• 针对火狐,下面这种方法可以骗过博客WYSIWYG编辑器,不会吃掉iframe后的文字 -☆003☆- ♀ (229 bytes) () 11/26/2012 postreply 11:47:49
• 用此法瞒天过海,我fix了这个旧贴.看上去好多多了~~ -闽姑- ♀ (136 bytes) () 11/26/2012 postreply 13:49:31
• 哈哈,不错,你很热爱博客啊 :-) -☆003☆- ♀ (0 bytes) () 11/26/2012 postreply 13:57:49
• 谢谢邦邦,007的兄弟! -闽姑- ♀ (0 bytes) () 11/26/2012 postreply 14:12:34