随笔分类 - HTML
摘要:在VS.NET 2008 中新建页时会有<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">这个标准,但对于IE 6 不支持这个标准,故在使用iframe是右边会有空白。将此句去掉并且需要把ifram所在的页面的body设置为overfolw:auto还要把iframe里面要显示的页面也设置为overfolw:auto这样才可以
阅读全文
摘要:有3种方法可以实现html的页面跳转,1,refresh 2,onload事件中加入代码 3,js实现1.htmlbodymeta http-equiv="refresh" content="0;url=http://88223100.cnblogs.com"/body/html2.htmlheadmeta http-equiv="Content-Type" content="text/html; charset=gb2312" /title欢迎访问/title/headbody onLoad="parent.location='http://88
阅读全文
摘要:方法一:防止页面滚动#region"防止页面滚动"publicvoidRetainScrollPosition(System.Web.UI.PagemyPage,stringstrBodyName){StringBuildersaveScrollPosition=newStringBuilder();StringBuildersetScrollPosition=newStringBuilder();myPage.RegisterHiddenField("__SCROLLPOS","0");saveScrollPosition.Append("scriptlanguage='javascrip
阅读全文
摘要:在web开发经常会遇到如: 这样的字符。它其实是Html将一些特殊字符(Html语法字符)的一种表达方式。下面列举几个常用字符: 空格& &< <> >" "&qpos; '
阅读全文
摘要:在网页中经常遇到要设置默认按钮,是在Html的form标签中设置。<form id="form1"defaultbutton="buttion1" //默认按钮 defaultfocut="test1" //默认焦点runat="server">
阅读全文
摘要:FCKeditor 与 <base target="_self"/> 导至“无法打开Internet站点”错误问题:弹出模式窗口:"window.showModalDialog('KnowledgeEdit.aspx?Action=Edit&Text='+ '' + '','添加知识','dialogWidth:900px;dialogHeight:60...
阅读全文