div+css如何改变背景图片位置

默认是靠左上角的 我想让这幅图靠底部居左 怎么写样式

要让图片靠左,居于底部,用:background:url(这里是你的背景图片路径) no-repeat left bottom;我是网页设计师,如果可以,请联系我,把代码传给我帮你检查是哪里出了问题。扣扣→ 2 5 1 0 5 2 4 3
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-03-31
background:url(背景图路径) left bottom;/*left 和 bottom 改为 top、right、center看看有什么变化*/

background:url(背景图路径) 0 10px;/*改改里面数值试试*/

background:url(背景图路径) 50% 0;/*改改里面数值试试*/
第2个回答  推荐于2017-10-03
background-position:数值1 数值2;
数值1是控制左右宽度
数值2是控制上下高度
底部右下可以写:background-position:right bottom;本回答被网友采纳
第3个回答  2013-04-27
background-position:left bottom; 第一个水平left 第二个垂直bottom。 也可以写具体数值:background-position:36px 48px; 记住先后水平垂直顺序。
第4个回答  2013-04-01
background-position:bottom left;
相似回答