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">我的右邊邊框無(wú)邊線而其它三邊為黑色虛線邊框?qū)嵗?lt;/div>
<!DOCTYPE html><html><head><meta charset="gb2312" /><title>CSS 虛線 365jz實(shí)例說(shuō)明<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實(shí)例 */</style></head><body>www.com365jz.com css虛線實(shí)例實(shí)例<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">我的右邊邊框無(wú)邊線而其它三邊為黑色虛線邊框?qū)嵗?lt;/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>
如對(duì)本文有疑問,請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇