请问为什么我在输入<style type="text/css">
.borderline{
margin:0px;
border-width: 3px;
padding:3px;
border-top:#C0C0C0 1px groove;
border-bottom:#C0C0C0 1px groove;
}
</style>
这一段代码以后下边框的颜色正常显示为灰色,然而上边框的颜色显示仍为黑色。
还有为何在左边的表格内的内容往下掉

解决方案 »

  1.   

    <style type="text/css"> 
    .borderline{ 
    margin:0px; 
    border-width: 3px; 
    padding:3px; 
    border-top:#CCCCCC 1 thin;和这个有关系
    border-bottom:#C0C0C0 1px groove; 

    </style> 
      

  2.   

    [Quote=引用 1 楼 hhxxcj 的回复:]
     
    border-top:#CCCCCC 1 thin;和这个有关系 
    这样的话1代表什么?thin还是宽度啊,跟颜色有什么关系,我上下颜色要设置成一样的,改成你那样不是什么都不一样了么?
      

  3.   

    groove 是 定义 3D 凹槽边框, 为了达到效果,肯定有高光和背光部分要体现
    只要细边线你用 solid
      

  4.   

    实边这样
    .borderline{ 
    margin:0px; 
    border-width: 3px; 
    padding:3px; 
    border-top:1px solid #c0c0c0; 
    border-bottom:1px solid #c0c0c0;