开发者

computedStyle for -webkit-column-count

document.defaultView.getComputedStyle(div, null).webkitColumnCount

this JavaScript gives me the correct column count when explicitly stating it in my CSS, but if I don't state the coun开发者_JS百科t in CSS - this property will return 'auto'.

I am wondering if there is anyway of returning the number of columns, even though the -webkit-column-count is in 'auto' mode. (as these columns still technically exist).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜