ここに私のコードがあります
var pollPercent = function() {
$("#poll li").each(function(){
var percent = $(this).attr("data-percent");
var width = (percent / 100) * 1000;
var el = $(this);
$("head").append("<style>" + el + ":before {width: " + width + "px;}</style>");
});
};
pollPercent();
では、どのように各liをポイントして、その「疑似要素の前」を変更できますか