CSS背景
背景颜色background-color: royalblue;背景图background-image: url(./1.png)。只要插入的是背景图,都需要指定宽度和高度,否则不显示.如果指定的宽度和高度小于图片的尺寸,将会被截掉,如果过大,图片就会重复平铺默认的是从x轴平铺,平铺样式 background-repeat: no-repeat; background-repeat: repeat-x; background-repeat: repeat-y; 背景图定位取值 background-position: center; background-position: bottom; background-position: top; background-position: right; background-position: left; background-position: left right; background-position: 100px,100px; 背景图片尺寸
CSS背景最先出现在Python成神之路。
相关内容
- OpenList – A New Open Source and Self Hosted Multiple Storage Management Tool to Replace AList
- Microsoft Free Built-in VPN in Edge Browser
- [5 Mins Docker] Build an AI-driven Online Chart Editor – Next-AI-Draw.io
- Azure Free DB (Azure SQL Database – Always free, Azure Database for MySQL – 12 Months)
- A free version of ChatGPT – Free 2.5 Years until June 2027
- Free 12 Months Google Gemini AI Pro (Bypass Student Verification)

共有 0 条评论