第二十五届投洽会今日开幕 有哪些亮点?

还可以添加背景颜色,式盒色尺背景地址,定位中间*/
background-position: right center;

省略一个,背景第二个方位是式盒色尺居中
/*x y 顺序不能颠倒了*/
background-position: 20px 50px;

background-position: center 40px;


4.背景固定

/*固定*/
background-attachment: fixed;

/*随对象内容滚动*/
background-attachment: scroll;


5.背景复合型写法

/*背景颜色,

1.背景颜色

/*透明色*/
background-color: transparent;

/*半透明*/
background: rgba(0, 0, 0, 0.5)

/*换颜色*/
background-color: #;

2.背景图片

/*书写实例 默认平铺的*/
background-image: url(c:/WEB/amag/a1.png);

/*不平铺*/
background-repeat: no-repeat;

/*平铺*/
background-repeat: repeat;

/*x 平铺*/
background-repeat: repeat-x;

/*y 平铺*/
background-repeat: repeat-y;

页面既既可以添加背景图片,背景图片,背景背景图片会压着背景颜色


3.背景位置

/*水平居中垂直,定位背景图片位置*/
background: black url(c:/WEB/amag/a1.png) no-repeat fixed center top
靠上*/
background-position: center top;

/*右边,背景背景平铺,式盒色尺背景图像滚动,定位

本文由用户 chener 上传分享,若有侵权,请联系我们(点这里联系)处理。如若转载,请注明出处:/wz5166.html

赞 (0)
chenerchener
上一篇2024年4月8日
下一篇 2024年4月8日

相关推荐

发表回复

登录后才能评论
网站地图|友情链接: