阅读:6134回复:6
求教怎么将Stylish的一个about:newtab样式里的背景图片地址替换成本地图片格式???/*Main Background*/ #newtab-scrollbox:not([page-disabled]), #newtab-scrollbox { background: url('http://XXXXXXXX.jpg') 100% 100% !important; background-repeat: no-repeat !important; background-attachment: fixed !important; background-position: center !important; -webkit-background-size: cover !important; -o-background-size: cover !important; background-size: cover !important; overflow-y: hidden !important; min-height: 100% !important; min-width: 1024px !important; width: 100% !important; height: auto !important; } background: url('http://XXXXXXXX.jpg') 100% 100% !important; 上面的样式是用网络上的图片地址,可我想用本地图片地址替代,应该怎么修改? |
|
1楼#
发布于:2012-11-02 00:41
Re: 求教怎么将Stylish的一个new:tab样式里的背景图片地址替换成本地图片格式???
是 about:newtab Windows: background: url('file:///C:/XXXXXXXX.jpg') 100% 100% !important; <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> |
|
|
2楼#
发布于:2012-11-02 00:41
|
|
3楼#
发布于:2012-11-02 00:41
用base64,易于携带,不受绝对地址改变的影响。stylish里点插入-数据URL即可自动转码。
url("data:image/png;base64,XXXXXXXXXXXXXXXXXXXXXX") |
|
4楼#
发布于:2012-11-02 00:41
|
|
|
5楼#
发布于:2012-11-02 00:41
|
|
6楼#
发布于:2012-11-02 00:41
用路徑也是存在 stylish.sqlite 的一部分 <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> 圖檔容量被包進一長串的文字裡面去了嗎?! Orz... |
|
|