CSS代码: .com365jz{border:1px dashed #000; height:50px;width:350px}Html代码: <div class="com365jz">我的四边为黑色虚线边框</div>
CSS代码: .com365jz-1{border-left:1px dashed #000; height:50px;width:350px}Html代码: <div class="com365jz-1">我的左边为黑色虚线边框</div>
CSS代码: .com365jz-2{border-right:1px dashed #000; height:50px;width:350px}Html代码: <div class="com365jz-2">我的右边为黑色虚线边框</div>
CSS代码: .com365jz-3{border-top:1px dashed #000; height:50px;width:350px}Html代码: <div class="com365jz-3">我的上边为黑色虚线边框</div>
CSS代码: .com365jz-4{border-bottom:1px dashed #000; height:50px;width:350px}Html代码: <div class="com365jz-4">我的下边为黑色虚线边框</div>
CSS代码: .com365jz-5{border:1px dashed #000;border-right:0; height:50px;width:350px}Html代码: <div class="com365jz-5">我的右边边框无边线而其它三边为黑色虚线边框实例</div>
<!DOCTYPE html><html><head><meta charset="gb2312" /><title>CSS 虚线 365jz实例说明<title>www.com365jz.com</title><style>.com365jz{ border:1px dashed #000; height:50px; width:350px}.com365jz-1{border-left:1px dashed #000; height:50px;width:350px}.com365jz-2{border-right:1px dashed #000; height:50px;width:350px}.com365jz-3{border-top:1px dashed #000; height:50px;width:350px}.com365jz-4{border-bottom:1px dashed #000; height:50px;width:350px}.com365jz-5{border:1px dashed #000; border-right:0;height:50px;width:350px}/* www.com365jz.com实例 */</style></head><body>www.com365jz.com css虚线实例实例<br><div class="com365jz">我四边为虚线边框</div><br><div class="com365jz-1">我的左边为黑色虚线边框</div><br><div class="com365jz-2">我的右边为黑色虚线边框</div><br><div class="com365jz-3">我的上边为黑色虚线边框</div><br><div class="com365jz-4">我的下边为黑色虚线边框</div><br><div class="com365jz-5">我的右边边框无边线而其它三边为黑色虚线边框实例</div></body></html>
<!Doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk2312"/>
<title>dotted虚线</title>
<style type="text/css">
*{
margin:100px;
padding:0;
}
body{
width:1000px;
margin:0 auto;
}
.box{
width:300px;height:50px;
text-align:center;
padding-top:30px;
border:1px dotted #000;
}
</style>
</head>
<body>
<p>大家好,我是dotted虚线!</p>
</body>
</html>
<!Doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk2312"/>
<title>dashed虚线</title>
<style type="text/css">
*{
margin:100px;
padding:0;
}
body{
width:1000px;
margin:0 auto;
}
.box{
width:300px;height:50px;
text-align:center;
padding-top:30px;
border:1px dashed #000;
}
</style>
</head>
<body>
<p>大家好,我是dashed虚线!</p>
</body>
</html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛