在外联样式表中设置url的路径时。格式--> url(‘../img/xx.xx’) 注意前面两个 ‘ . ’,如果css样式写在内联样式表中,则可省略两个 ‘ . ’。 转载于:https://www.cnblogs.com/eoff/p/5133096.html