注册 登录
编程论坛 ASP技术论坛

CSS问题

xing599666 发布于 2011-02-20 15:27, 462 次点击
不用CSS属性:position:absolute; 可以做到这样的效果吗?

高人帮忙修改下。



只有本站会员才能查看附件,请 登录


程序代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.">
<html xmlns="http://www.">

 <head>
  <title> new document </title>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />

 <style>

 /*滚动图片*/
.blk_18 #List1_1, .blk_18 #List2_1 {float:left;}
.blk_18 {list-style:none;overflow:hidden;zoom:1;font-size:9pt;border:1px solid #fff;margin-top:8px;margin-bottom: 8px;}
.blk_18 .pcont {width:670px;overflow:hidden;padding-left:15px;}
.blk_18 .ScrCont {width:32766px;zoom:1;margin-left:-5px;}
.blk_18 img {border:none;width:100px;height:140px;border:1px solid #cdcdcd;}
.blk_18 .pl {float:left;width:133px;border:1px solid #fff;text-align:center;}
.blk_18 a{margin:6px auto 1px auto;display:block;width:102px;height:142px;padding:2px 2px 2px 2px;border:1px solid #ddd;color:#5dacec;}
.blk_18 a:hover {border:1px solid #5dacec;}
.blk_18 em {right:5px;font-style:normal;color:#ff00dd;}
.blk_18 .bg {right:2px;display:block;width:100px;height:18px;background:url(http://misc.web.) no-repeat 0 0; _background:none; _filter:progid:DXImageTransform.Microsoft.gradient(startColorStr=#00000000, endColorStr=#99000000, gradientType='1');}
</style>

 </head>


 <body>
  <div class="blk_18">
  <div class="pcont" id="ISL_Cont_1">
  <div class="ScrCont">
  <div id="List1_1">
  <!-- piclist begin -->
  <li class="pl"><a href="#"><img src="Ax_img/1.jpg" alt=""><span class="bg"></span><em>DVD版</em></a><p>图片一</p></li>
  <!-- piclist end -->
  </div>
  <div id="List2_1"></div>
  </div>
  </div>
</div>

 </body>
</html>
2 回复
#2
xing5996662011-02-20 17:26
没人吗??自己顶下!!
#3
xing5996662011-02-20 18:36
已经解决。
1