fieldset使用实例

 

myssh<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>www.52CSS.com</title>
<style type="text/css">
* {
font-size:12px;
margin:0;
padding:0;
}
fieldset {
padding:10px;
margin:10px;
width:270px;
color:#333;
border:#06c dashed 1px;
}
legend {
color:#06c;
font-weight:800;
background:#fff;
border:#b6b6b6 solid 1px;
padding:3px 6px;
}
ul {
list-style-type: none;
margin:8px 0 4px 0;
}
li {
margin-top:4px;
}
</style>
</head>
<body>
<fieldset>
<legend>myssh</legend>
<ul>
<li>欢迎来到myssh的博客</li>
<li>欢迎来到myssh的博客欢迎来到myssh的博客</li>
<li>欢迎来到myssh的博客欢迎来到myssh的博客</li>
<li>欢迎来到myssh的博客欢迎来到myssh的博客</li>
</ul>
</fieldset>
</body>
</html>


 

你可能感兴趣的:(Field)