<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.ab_1{
width:298px;
height:28px;
border-style: solid solid none solid ;
border-width: 1px ;
border-color: #97caf5 ;
}
.ab_01{
float:left;
width:198px;
height:28px;
background-color:#60F;
}
.ab_02{
float:right;
width:100px;
height:28px;
background-color:#F00;
}
</style>
</head>
<body>
<div class="ab_1">
<div class="ab_01"></div>
<div class="ab_02"></div>
</div>
</body>
</html>
FF、谷歌中效果如下图:
IE中 效果如下图:
IE中发现右边那个层掉下来了!
解决办法:
把上面代码中的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
改成:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
分享到:
相关推荐
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">` - XHTML1.0 Strict:`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">` - **Strict**: `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>登录图书...
DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>a test ...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>登录页面</title></head><body> <form name="loginForm" method="post" action="judgeUser.jsp"> <table> <tr> <td>用户名:...
在IT领域,特别是软件开发行业中,Struts、Spring与Hibernate是三个非常重要的开源框架,它们分别在MVC架构、依赖注入以及数据持久化方面发挥着关键作用。下面将详细阐述这三个框架及其在应用开发中的作用。...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br><html lang="zh-CN"><br><br>这种标准一下的宽度和高度必须指定单位,即width:144px; height: 211px;是认可的,而width:144; height: 211;是不...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ``` 3. **HTML Frameset DTD**:用于包含框架的文档,它等同于Transitional DTD,但替换body元素为...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">` - **HTML4.01 Frameset**:`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" ...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <% String id=request.getParameter("id"); BlogService service=new BlogService(); service.get %> </...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">`,而XHTML 1.0的声明可能为`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <meta http-equiv="content" content="text/html" charset="utf-8"/> ...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题...
DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ include file="/WEB-INF/commIncludePage/common.jsp"%> <html> <head> <meta http-equiv=
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>登录界面</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <link rel="stylesheet" ...
在网上找了很多重写DropDownList控件可输入,可选择DropDownList的代码,一直没有合适的,这个代码源件是从国外网站上找来的,...DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">就不会出现错位的问题。
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ``` 3. **Frameset DTD**:用于含有框架的文档。 ```html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML ...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>action标签</title> </head> <body> <!-- 这句会显示action请求的跳转页面success.jsp页面要显示的内容 --> <s:action name=...