请高手帮我翻译CSS

来源:百度知道 编辑:UC知道 时间:2024/09/23 20:47:26
* { padding: 0; margin: 0 }
body { margin:5px 0; padding:0; font: 74% Arial, Sans-Serif; color:#000; line-height: 1.4em; background : #575757;}
.content { color: #3B2A0A; margin: 0 auto; padding: 0; width: 825px; background: url(bg2.jpg) repeat-y center bottom; }
#header { background: url(header.jpg) no-repeat; width: 825px; height: 213px; color: #3B2A0A; }
#header h1 { background: inherit; font: bold 3em "Tahoma", Arial; color: #85621E; line-height: 1em;}
#header h3 { background: inherit; font: bold 1em "Tahoma", Arial; color: #000; }
#header .title { padding: 60px 0 0 60px; }
#main { background: url(bg.jpg) no-repeat top; height: 353px; margin: 0; padding: 0 }
#main .center { width: 550px; float: right; padding: 0 60px 0 0px; }
#main h2 { background-color: inherit; color: #85621E; line-height: 0.2em; }
#main h3 { font: 85% Arial, Sans-Serif; margin: 0 0 10px 0; padding: 0; color: #5f5f5f; background: inherit; }

翻译这些要花点时间的,而且你对盒模型不了解的话
翻译了也没用

大概举个例子
p { margin: 0 0 5px 0; padding: 0; color: #555; background: inherit; }

p 的意思 就是选择 p这个标签
#p的话 就是选择 id=p 的那个标签
.p 的话 就是选择 class=p 的那个标签
这些是选择器,后面那些是具体要应用的样式

以房间为例子
margin: 就是外边距,就是房间的墙壁与房子外围墙壁的距离
padding: 就是内边距,相对与房内的家具里墙壁的距离,如果设为0,就相当于靠墙摆放了

background:背景的意思,可以设置颜色,背景图片等等

东西太多
具体的还需自己多去了解!

132312312312312312312321364519764953761916536154976531615497665351649735615797356165964龙卡及深刻理解你废话欧恩贵纳米级摆弄叫你何必哦可不能少出门旅客近三百破了可就是女鬼恐惧你就不弄

*(填充:0;保证金:0)(身体保证金:5px 0;填充:0;字体:宋体74%,无衬线;颜色:#000;线高度:1.4em;背景:#575757;)
内容(颜色:#3B2A0A;保证金:0汽车;填充:0;宽度:825px;背景:网址(bg2.jpg)重复,辎中心底部;)#头(背景:网址(header.jpg)不重复;宽度:825px;高度:213px;颜色:#3B2A0A;)
#头上半年(背景:继承;字体:粗体3em“宋体”,宋体;颜色:#85621E;线高度:1em;)(#头H3的背景:继承;字体:粗体1em“宋体”,宋体;颜色: #000;)#头。题(填充:60px 0 0 60px;)
氢气(#主背景色:继承;颜色:#85621E;线高度:0.2em;)#主H3的(字体:宋体85%,无衬线;保证金:0 0 10px 0;填充:0;颜色: #5f5f5f;背景:继承;)。
宽度:120px;浮动