css学习资料

来源:互联网 发布:大数据展现工具 编辑:程序博客网 时间:2024/06/03 07:27

css学习资料:http://www.w3school 线上学习教程http://sc.chinaz.com 炫酷模板实践http://www.wangjie.org  创意设计让DIV垂直水平都居中
.main{ position:absolute; top:50%; left:50%; width:420px; height:158px;  margin:-94px 0 0 -280px; background:#3399FF;}  -->  



css圆角制作:

<!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>
<title>非常好看的CSS圆角边框 by www.865171.cn</title>
<style type="text/css" media="screen,print">
*{padding: 0; margin: 0;}
body {background-color:#fff; margin: 10px; padding: 0;}
html body{font: 62.5%/1.4em Arial, Helvetica, sans-serif;color:#333333}
html>body{font: 62.5%/1.4em Arial, Helvetica, sans-serif;color:#333333}
p, table, ul, dl, h2 {font-size: 1.2em}
caption {font-size: 1.4em}
h3 {
color: #cfcfcf;
    font-weight: bold;
    text-transform: capitalize;
    margin-top:30px;
    padding-bottom:10px;
}
a:link {color: #CC6633;}
a:visited {color: #CC6633;}
a:hover {color: #999966;}
a:active {color: #CC6633;}
a:focus{color: #CC6633;}
        .portletcontent {
        padding:0 7px 0 0;
        background:#fff url(images/borders.gif) 100% 0 repeat-y;
    }
    .bi {
        padding:0 0 0 1px;
        background:#000 url(images/borders.gif) 0 0 repeat-y;
    }
    .bb {
        height:30px;
        margin:0 -7px 0 -1px;
        background:url(images/box.gif) 100% 100% no-repeat;
    }
    .bb div {
        width:18px;
        height:30px;
        background:url(images/box.gif) 0 100% no-repeat;
    }
    .portlet h2 {
    height:20px;
    padding:0 0 0 10px;
    background-color:#666;
    background-image:url(images/topright.gif);
    background-position:right top;
    background-repeat:no-repeat;
    color:#592C16;
    line-height:20px;
    }
    
    .portletcontent p {
        padding:8px 10px 8px 10px;
        background:#fff;
    }
    </style>
    
    </head>
<body>


<div class="portlet"><!-- Start Portlet -->
<h2 style="background-color:#0066CC;color:#FFFFFF;">CSS圆角边框</h2>
<div class="portletcontent"><div class="bi">
<!-- Visual Content for Portlet below -->
<p>从前有两个人,分别住在河两岸,两个人耳朵都不好,不过倒是都很客气。一天早晨,河西的看见河东的拿着把镰刀出门,就对着对岸大叫:喂!我说,你是去割草吗?河东的看见河西的向他大叫,知道是关心自己去做什么,于是大叫:啊,不,我是去割草呀!河西的看见对岸的人冲他大叫,知道对方回答自己了,很有礼貌地说:哦,是吗,我还以为你是去割草呢!

</p>
<div class="bb"><div></div></div>
</div>
</div><!-- End Portlet Content-->
</div><!-- End Portlet -->

<div class="portlet" style="width:50% "><!-- Start Portlet -->
<h2 style="background-color:#0066CC;color:#FFFFFF;">CSS圆角边框二</h2>
<div class="portletcontent"><div class="bi">
<!-- Visual Content for Portlet below -->
<p>
您现在进入的是免费模板网,请记住本站网址www.865171.cn,非常感谢您对我们的大力支持,我们将努力的做到最好,Let's go,加油。此页面提供了三种不同大小的圆角边框,美观个性而不张扬!
</p>
<div class="bb"><div></div></div>
</div>
</div><!-- End Portlet Content-->
</div><!-- End Portlet -->


<div class="portlet" style="width:300px "><!-- Start Portlet -->
<h2 style="background-color:#0066CC; color:#FFFFFF;">CSS圆角边框三</h2>
<div class="portletcontent"><div class="bi">
<!-- Visual Content for Portlet below -->
<p>
有一天,大象和骆驼在一起说话,骆驼问大象:你为什么长的这么大?大象说:“我不和奶奶长在背上的人讲话”这时大象问骆驼说:骆驼你为什么长得这么小啊?骆驼说:“我不和鸡鸡长在脸上的人讲话!”
</p>
<div class="bb"><div></div></div>
</div>
</div><!-- End Portlet Content-->
</div><!-- End Portlet -->
</body></html>

原创粉丝点击