我在asp.net中套用美工给的html页面出了问题、用html打开很好、复制到aspx页面换了服务器控件样式就都没了

[复制链接]
查看11 | 回复4 | 2010-9-4 23:24:17 | 显示全部楼层 |阅读模式
用html打开很好、一点问题都没有。复制到asp.net页面中就感觉一些css样式和布局很多都没有套用上去、
CSS样式部分如下....
* {
margin-top: 0px;
margin-left: 0px;
}
* { margin:0; padding:0; }
body {
font-family: "新宋体";
font-size: 12px;
line-height: 1.5;
color: #333;
height: auto;
width: 1001px;
margin-right: auto;
margin-left: auto;
}
#main {
height: auto;
width: 960px;
}
#main #top {
background-image: url(../images/topbg_02.png);
background-repeat: no-repeat;
height: 30px;
width: 960px;
line-height: 30px;
font-family: "新宋体";
font-size: 12px;
color: #333;
}
#main #top #left {
float: left;
height: 28px;
width: 500px;
}
#main #top #right {
float: right;
height: 28px;
width: 360px;
}
.top1 {
color: #F60;
margin-left: 7px;
}
.top2:link {
color: #666;
text-decoration: none;
}
html部分、、


无标题文档



替换asp.net部分。。



无标题页








游客0001您好,欢迎您的到来! [url=]请登录[/url]|[url=]免费注册[/url]|[url=]忘记密码[/url]

[url=]购物车[/url]|[url=]广告服务[/url]|[url=]会员服务[/url]|[url=]返回首页[/url]|[url=]收藏我们[/url]




昨天页面弄好了、可是今天在里面加了点东西样式又全没了。。 怎么办啊!求救。。
不行啊、 都试过啦、 再说了、有些服务器控件必须放在server窗体中啊、
急呀、、、、 有人能帮忙吗。只要能解决,多少分都行啊!! 忘高手相助、、、
问题到底出在哪里了啊!

回复

使用道具 举报

千问 | 2010-9-4 23:24:17 | 显示全部楼层
把这个和末尾的去掉试下。
回复

使用道具 举报

千问 | 2010-9-4 23:24:17 | 显示全部楼层
修改为
回复

使用道具 举报

千问 | 2010-9-4 23:24:17 | 显示全部楼层
检查一下,这个文件存在不
回复

使用道具 举报

千问 | 2010-9-4 23:24:17 | 显示全部楼层
改成试下。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行