前端-初学-css-背景
作者:互联网
背景颜色
背景图片
css:
<style> div{ width: 1000px; height: 700px; border:1px solid blue; background-image:url("images/c.jpg") ; /* 默认是全部平铺的*/ } .div1{ background-repeat: repeat-x; } /*水平平铺*/ .div2{ background-repeat: repeat-y; } /*垂直平铺*/ .div3{ background-repeat:no-repeat; } /* 不平铺*/ </style>
标签:平铺,repeat,前端,jpg,初学,background,image,css 来源: https://blog.csdn.net/qq_57419990/article/details/121322637