diff --git a/frame.js b/frame.js index 97f662b5..6b4bff98 100644 --- a/frame.js +++ b/frame.js @@ -220,7 +220,8 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met sub.onappend._status(sub, status) // 添加控件 - function add(item, next, index) { + var index = -1 + function add(item, next) { item._input == "text" && index++ return sub._inputs[item.name] = Volcanos(item.name, { _help: item.name, _follow: can._follow+"."+meta.name+"."+item.name, _target: can.onappend.input(sub, option, item.type, item, args[index]), _option: option, _action: action, _output: output, diff --git a/index.css b/index.css index 4f0c6c1f..b3670c0d 100644 --- a/index.css +++ b/index.css @@ -147,6 +147,7 @@ fieldset div.code { padding:10px; overflow:auto; border:solid 3px green; + text-align:left; /* max-height:640px; */ } table { @@ -154,6 +155,7 @@ table { cursor:pointer; border:solid 1px green; overflow: auto; + text-align:left; } table tr:hover { background-color:#0fbd45; diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index 12dda5d2..213f5bd2 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -8,7 +8,7 @@ Volcanos("onimport", {help: "导入数据", _init: function(can, msg, list, cb, {view: "profile"}, {view: "holdon", list: [ - {view: "preview"}, {view: "content", style: {"max-width": can.Conf("width")-120+"px"}}, + {view: "preview"}, {view: "content", style: {"max-width": can.Conf("width")-160+"px"}}, ]}, {view: ["editor", "textarea"], onkeydown: function(event) { diff --git a/plugin/local/wiki/word.css b/plugin/local/wiki/word.css index 1750a694..9bb37953 100644 --- a/plugin/local/wiki/word.css +++ b/plugin/local/wiki/word.css @@ -1,10 +1,10 @@ -fieldset.word h2.story { +fieldset h2.story { clear:both; } -fieldset.word h3.story { +fieldset h3.story { clear:both; } -fieldset.word p.story { +fieldset p.story { white-space:pre; } fieldset.word svg.story { @@ -27,6 +27,10 @@ fieldset.word code.story { div.show { position:absolute; top:0; + color:black; +} +div.show table { + color:black; } div.show>div.control { background-color:aliceblue;