Firefox addon 使用XUL设置图像边框

Firefox addon 使用XUL设置图像边框,firefox-addon,border,xul,Firefox Addon,Border,Xul,如何使用XUL为图像设置边框 我试过了 var img = document.createElement("image"); img.setAttribute("id","users_1"); img.setAttribute("style","width:30px;height:30px;cursor:pointer;border:1px solid"); 但它似乎忽略了它。您需要在边框定义中指定一种颜色: 将边框:1px纯黑更改为边框:1px纯黑 borders肯定在xul工作

如何使用XUL为图像设置边框

我试过了

var img = document.createElement("image");
img.setAttribute("id","users_1");
img.setAttribute("style","width:30px;height:30px;cursor:pointer;border:1px solid");

但它似乎忽略了它。

您需要在边框定义中指定一种颜色:

边框:1px纯黑
更改为
边框:1px纯黑

borders肯定在xul工作