很急很简单的问题,求兼容FF和IE的方法,如何让DIV占满整个页面 很简单的问题,求兼容FF和IE的方法,如何让DIV占满整个页面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把DIV设一下属性:width=100%,height=100% 在IE里不行!再问个问题,在火狐里DIV的透明效果怎么弄呢? div(height:98%;width:98%;margin:2%;)么测试啊! document.documentElement.clientHeightdocument.documentElement.clientWeight 在IE里,对于高度它会根据放置于里面的控件进行自动调整,应该不用担心的。对于你第二个问题,我能想到的也只能用filter属性了。下面是我在vs2005里测试用的代码:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <div style="width: 100%; height: 100%;background-color: #0099ff;"> <asp:Panel ID="Panel1" runat="server" Height="116px" Style="filter: progid:dximagetransform.microsoft.alpha(opacity=50); background-color: #00ffff" Width="231px"> </asp:Panel> </div> </div> </form></body></html>在我这测试是成功的 在firefox里就没有测试过,楼主自己试下吧 求助 如何生成Session日志 ASP 权限问题,提问怎么没人解答? GivdView中CheckBox全选问题 循环获取数据 c#实现动态调用数据库图片新闻 请问Calender日历控件怎样去除下划线? 菜鸟问题,关于Session 自己写的一个WEB控件,为什么放到左边选项卡后,不能显示出自定义的位图 图标 asp.net 播放.flv文件 有关数据处理的问题 asp.net中文乱码,进来看看啊!尚待解决中
再问个问题,在火狐里DIV的透明效果怎么弄呢?
么测试啊!
document.documentElement.clientWeight
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<div style="width: 100%; height: 100%;background-color: #0099ff;">
<asp:Panel ID="Panel1" runat="server" Height="116px" Style="filter: progid:dximagetransform.microsoft.alpha(opacity=50);
background-color: #00ffff" Width="231px">
</asp:Panel>
</div>
</div>
</form>
</body>
</html>在我这测试是成功的