我想问,一般CSS代码是怎么弄来的?我听人说是拷贝过来的,到底怎样拷贝啊?还有简单的使用方法是怎样的?我就只知道一个改变字体大小的,
<style type="text/css">
body,td{
font-size:13px ;
}
</style>
请多介绍些方法。
我想问,一般CSS代码是怎么弄来的?我听人说是拷贝过来的,到底怎样拷贝啊?还有简单的使用方法是怎样的?我就只知道一个改变字体大小的,
<style type="text/css">
body,td{
font-size:13px ;
}
</style>
请多介绍些方法。
CSS代码是写出来的,遵循W3C标准,具体有什么css可以如Qiuyu兄台所说的,上 http://www.w3school.com.cn/css/
去学习一下
这是我写的部分CSS代码
.doc{position:relative; width:965px; height:auto !important; height:200px; min-height:200px; overflow:auto !important; overflow:visible; margin:0px auto 20px auto; background:#fff;} .head{position:relative; width:100%;height:86px; margin:0px auto; position:relative;background-image:url(../Img/headbg.jpg); background-repeat:repeat-x; } .head_logo{position:relative; width:199px; height:37px; float:left; background-image:url(../Img/biortus.gif); background-repeat:no-repeat; left:235px; top:35px;} .head_logo2{position:relative; width:284px; height:26px; float:left;background-image:url(../Img/wuxi.gif); background-repeat:no-repeat; left:698px; top:60px;} .menu{position:relative; width:961px;height:44px; margin:0px auto; background-image:url(../Img/menu.gif); background-repeat:no-repeat; padding-top:2px; } .menuitem{position:relative; width:878px;height:40px; margin:0px auto; } .menuitem_pic{position:relative; width:16px;height:14px; background-image:url(../Img/jiantou.gif); background-repeat:no-repeat; margin:1px auto 0px auto; visibility:visible;} .menuitem_pic2{position:relative; width:16px;height:14px; background-image:url(../Img/jiantou.gif); background-repeat:no-repeat; margin:1px auto 0px auto; visibility:hidden;} .menu_tab{ padding:0px 0px; border:0px none;text-align:center; position:relative; margin:0px auto;}
一般自己做DIV+CSS,在Dreamweaver里面建立样式表。
其次,你也可以下载别人好看的CSS样式表,下载网页不用多说了吧。。最后把CSS拷贝下来,添加到网页目录里,最后套用样式就可以了
建议您先详细的了解下CSS的基本结构
http://www.w3school.com.cn/css/