草稿,每个美工都要懂些代码
代码
<div style=""> style 是样式</div>
<div style="margin:auto">margin 是边距</div>
<div style="float:left"> float:left 是靠左浮动 </div>
一个div布局块,要是不加这个浮动代码,就会被其他布局块挤到下面去的,
<div style="width:600px; height:100px;">宽度width:600px; 高度height:100px; 每次写完一段代码都要加;这个代码才算完整写完</div>
azimuth 方位角; 航向
background 背景; 底色
background-attachment 决定背景是在视口中固定的还是随包含它的区块滚动的。
请看下面例子: fixed 是居中的意思
p {
background-image: url("https://mdn.mozillademos.org/files/12057/starsolid.gif");
background-attachment: fixed;}
background-color 背景颜色
background-image 背景图片
background-position 属性设置背景图像的起始位置。
background-repeat 只有垂直方向重复
border 边框的样式
border-bottom 设置底部边框样式:
border-bottom-color 设置底部边框颜色:
float 浮动 inherit 继承; left 左边的 none 没有一个 right 右边的
http://www.runoob.com/ 学习 解释代码的







































![BrawlStars荒野乱斗同人[02]. by 丁几](https://img.zcool.cn/community/6ab9edd86422d4gs1pg5zx8755.png?k=a43ad993278094b996d9b9045c50d145&t=6aedf980&x-oss-process=image/resize,m_fill,w_520,h_390,limit_1/auto-orient,1/sharpen,100/quality,q_80)
