background-position: -30px 0;
时间: 2023-09-13 22:10:23 浏览: 99
BackgroundPosition
background-position: -30px 0;是设置背景图片在元素中的位置的属性。其中-30px表示在水平方向上向左偏移30像素,0表示在垂直方向上不偏移。这样设置可以将背景图片向左移动30像素。\[2\]
#### 引用[.reference_title]
- *1* *3* [background详解](https://blog.csdn.net/sinat_31102083/article/details/78285922)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [网页基础(十四)background-position](https://blog.csdn.net/qq_41440413/article/details/104531851)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文