永发信息网

请问CSS代码一般如何编啊?

答案:4  悬赏:0  手机版
解决时间 2021-04-28 07:31
  • 提问者网友:绫月
  • 2021-04-27 18:45

我想问,一般CSS代码是怎么弄来的?我听人说是拷贝过来的,到底怎样拷贝啊?还有简单的使用方法是怎样的?我就只知道一个改变字体大小的,

<style type="text/css">
   body,td{
    font-size:13px ;
   }
  </style>

请多介绍些方法。

最佳答案
  • 五星知识达人网友:woshuo
  • 2021-04-27 20:22

CSS代码是写出来的,遵循W3C标准,具体有什么css可以如Qiuyu兄台所说的,上 http://www.w3school.com.cn/css/


去学习一下 

全部回答
  • 1楼网友:酒安江南
  • 2021-04-28 00:31

这是我写的部分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;}

  • 2楼网友:执傲
  • 2021-04-27 23:24

一般自己做DIV+CSS,在Dreamweaver里面建立样式表。

其次,你也可以下载别人好看的CSS样式表,下载网页不用多说了吧。。最后把CSS拷贝下来,添加到网页目录里,最后套用样式就可以了

  • 3楼网友:行雁书
  • 2021-04-27 21:49

建议您先详细的了解下CSS的基本结构

http://www.w3school.com.cn/css/

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯