html属性

设置颜色——color
设置背景颜色——background-color
插入背景图片——background-image:url()
插入背景附件——background-attachment:scroll|fixed固定
设置重复背景图片——background-repeat:repeat|repeat-x|repeat-y|no-repeat
设置背景图片位置——background-position:百分比|长度|关键字


设置边框属性——border:边框宽度,边框样式,边框颜色 空格
设计边框样式——border-style(boder-top-style):none,dotted点,dashed虚,solid实,double,groove凹,ridge,intsit嵌入,outset;空格
调整边框宽度——border-width(boder-top-width):关键字|长度 thin细,medium中,thick粗
设置边框颜色——border-color(border-top-color):颜色关键字|RGB值
边距——margin(margin-top):长度|百分比|auto
填充——padding(padding-top):长度|百分比

图层的创建
<body>
<div id="Layer1"    定义层的标记,层的名称
style="position:absolute;left:29px;top:12px;width:165px;height:104px; 层的样式
               layer-background-colorL:#666666;层的背景
      border:1 none #000000;">层的边框
</div>
</body>
图层的嵌套
<body>
<div id="Layer1" style="position:absolute; z-index:1; left:29px; top:12px; width:165px; height:104px;"></div>
<div id="Layer1" style="position:absolute; z-index:1; left:29px; top:12px; width:165px; height:104px;"></div>
</body>
层的属性设置


属性              说明
id             层的名称
style         position 定位
w,h           图层宽高
l 左边距
t                顶端间距
layer-background-color 
z-index:1         
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值