asp.net 使用 div+css的毛病

来源:百度知道 编辑:UC知道 时间:2024/06/14 09:34:42
用dreamware的代码转化到asp.net 可是就是实现不了那种浮雕连接的效果。dreamware浏览里可以看到很不错的效果,他时覆盖整个的框里,asp.net就显示的很奇怪,就会缩的很窄,字的背景变化九单单字的大小,显示的很难看。为什么会这样
<html>
<head>
<title>浮雕超链接</title>
<style>
<!--
body{
padding:0px;
margin:0px;
background-color:#f5eee1;
}
table.banner{
background:url(banner1_bg.jpg) repeat-x;
width:100%;
}
table.links{
background:url(button1_bg.jpg) repeat-x;
font-size:12px;
width:100%
}
a{
width:80px; height:32px;
padding-top:10px;
text-decoration:none;
text-align:center;
background:url(button1.jpg) no-repeat; /* 超链接背景图片 */
}
a:link{color:#654300;}
a:visited{color:#654300;}
a:hover{
color:#FFFFFF;
text-decoration:none;
background:url(button2.jpg) no-repeat; /* 变换背景图片 */
}
-->
</style>
<style type="text/css">
<!--
body{
b

把asp.net 中 .aspx代码页顶上的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
去掉