463
个编辑
无编辑摘要 |
无编辑摘要 |
||
第11行: | 第11行: | ||
top(内容在选择栏上) | top(内容在选择栏上) | ||
down(内容在选择栏下) | down(内容在选择栏下) | ||
left( | left(内容在选择栏左) | ||
right( | right(内容在选择栏右) | ||
--]] | --]] | ||
第83行: | 第83行: | ||
defaults['ctab']['height'] = '400px' | defaults['ctab']['height'] = '400px' | ||
defaults['ctab']['overflow-y'] 'auto' | defaults['ctab']['overflow-y'] = 'auto' | ||
defaults['ctab']['width'] = '60%' | defaults['ctab']['width'] = '60%' | ||
end | end | ||
local elements = {'div', 'stab', 'sitm', 'ctab', 'citm'} | |||
for _, s in ipairs(elements) do | |||
local resizeFlowDir = {height='y', width='x'} | |||
for size, dir in resizeFlowDir do | |||
if CSSvalue[s][size] then | if CSSvalue[s][size] then | ||
defaults[s]['overflow-'..dir] = 'auto' | defaults[s]['overflow-'..dir] = 'auto' | ||
第182行: | 第184行: | ||
--处理ordering | --处理ordering | ||
local elements = {'div', 'stab', 'sitm', 'ctab', 'citm'} | |||
for _, s in ipairs(elements) do | |||
for k, _ in CSSvalue[s] do table.insert(ordering[s], k) end | for k, _ in CSSvalue[s] do table.insert(ordering[s], k) end | ||
table.sort(ordering[s]) | table.sort(ordering[s]) |