阅读背景:

CSS仅为表格行宽度的百分比设置背景颜色

来源:互联网 

I have a basic table with two columns: name and value. I'd like to shade each row in the table an appropriate percentage of the width based on the size of the value (to essentially create a sideways histogram!). I can write code to calculate the appropriate percentage to set, but I can't figure out the CSS to actually shade each row appropriately. It seems like the whole row can be shaded, but not a percentage. Is that true?I have a basic table with two columns: name and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: