日期:2014-05-17  浏览次数:20940 次

关于css问题?小弟初学
<html>
<head>
<style   type= "text/css ">
<!--
.div1{
width:26%;
}
.div2{
float:left;
width:50%;
background-color:#88a6ff;
event:expression(onmousemove=function(){navbarOver(img5_1,   this, '#CCCCCC ')},onmouseout=function(){navbarOut(img5_1,   this, '#8faad7 ')})
}
.div3{
float:right;
width:50%;
background-color:#88a6ff;
event:expression(onmousemove=function(){navbarOver(img5_2,   this, '#CCCCCC ')},onmouseout=function(){navbarOut(img5_2,   this, '#88A6FF ');})
}
.div_clear{
clear:left;
}
-->
</style>
</head>
<body>
<div   class= "div1 ">
<div   class= "div2 "> <br   /> 你好 </div>
<div   class= "div3 "> <br   /> 呵呵 </div>
<div   class= "div_clear "> </div>
<div   class= "div2 "> <br   /> 你好 </div>
<div   class= "div3 "> <br   /> 呵呵 </div>
<div   class= "div_clear "> </div>
</div>
</body>

小弟想在两格之间   即“你好”和“呵呵”之间加一个白线。请给出代码   在线等   小弟初学

------解决方案--------------------
在div2和div3中间加一个div23,宽度设为1,背景为白色,或div2右边线设为白色.
div2的定义中加上 border-right:#FFFFFF;border-right-width:thin;