工具:VS2008 设计 ASP.NET网站
以下是css文件,请注意看红色部分
我在VS2008中切换到设计视图,图正常显示,点VS2008的调试按钮,则该图片不出来,块中只显示白背景
我用的是绝对路径啊,同时发现css和图和aspx文件都在相同的夹里,不存在找不到的问题啊body { font-family:Verdana; font-size:14px; margin:0;}#container {margin:0 auto; width:100%;}
#header { height:100px; background:#9c6 url(file:///C:\Users\Administrator\Documents\Visual Studio 2008\WebSites\WebSite2\K3C(O8Z{W05SF_OCMRKP]PY.gif) no-repeat; margin-bottom:5px;}
#menu { height:30px; background:#693; margin-bottom:5px;}
#mainContent {margin-bottom:5px;}
#sidebar { float:left; width:200px;background:#cf9;}
#content { margin-left:205px !important; margin-left:202px; height:auto !important; height:100px; background:#ffa;}/*当content设定高度后,3像素会跑到content外侧,这样,我们用!important修正在ie下向左多浮动2像素,加上3像素的bug正好是5像素,所以在火狐和IE下显示是一样的*/
#footer { height:60px; background:#9c6;}
.clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px;}