你的代码里就是黑色的,把border-righ这里改成和border-left一样的颜色就行
2 .width宽度直接作用在内在盒子上,内在盒子是由content box,padding box,border box,margin box。3 .margin的背景永远是透明的,因此不能作为background-clip,background-origin属性值出现。4 .100px作用在了content box上,但是由于div默认的padding,border,margin都是0,因此div所呈现的宽度就是100像...
http://www.w3cplus.com/css/advanced-html-css-lesson2-detailed-css-positioning.html 在包裹层设置margin属性为auto时,不能同时设置float and position,否则auto失效。 定宽+margin:auto = 自动居中 当div设置float:left时div盒子会向左贴近容器(或者父级盒子)同级别的div若没有设置float则被...
} /style /head body h1Modify/h1 pno-repeat/p /body /html 由上个例子我们可以发现,其实可以对背景图片进行位置的定位: background-position: top left,; top righ;, bottom right; bottom left; 代码如下: !DOCTYPE html html head meta charset="utf-8" titlebackground_pi...
direction: left(默认值) 左; right 右;up 上;down 下;bgcolor: 背景颜色 height: 高度 weight: 宽度 Hspace/vspace: 分别用于设定滚动字幕的左右边框和上下边框的宽度。作用大概和css中的margin差不多 scrollamount: 用于设定每个连续滚动文本后面的间隔,该间隔用像素表示,以上是官...