From fc8b136f840586fd6a960c1fda1779b5744d9319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=B7=E5=B1=8C=E4=B8=9D?= Date: Tue, 8 Oct 2019 15:48:25 +0800 Subject: [PATCH] Create component.wxss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加默认样式 微信组件转h5用到 --- packages/omi-mp/src-mp/component.wxss | 73 +++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 packages/omi-mp/src-mp/component.wxss diff --git a/packages/omi-mp/src-mp/component.wxss b/packages/omi-mp/src-mp/component.wxss new file mode 100644 index 000000000..5d6b3ca85 --- /dev/null +++ b/packages/omi-mp/src-mp/component.wxss @@ -0,0 +1,73 @@ +html { + height: 100%!important; + font-size: 12px +} + +blockquote,body,button,code,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,pre,td,textarea,th,ul { + margin: 0; + padding: 0 +} + +body { + background: #fff; + color: #444; + font-family: Microsoft YaHei,Verdana,Arial,Helvetica,sans-serif; + width: 100%; +} + +h1,h2,h3,h4,h5,h6 { + font-weight: 400; + font-size: 100% +} + +address,caption,cite,code,dfn,em,strong,th,var { + font-style: normal; + font-weight: 400 +} + +a { + color: #666; + text-decoration: none +} + +a:hover { + text-decoration: none +} + +img { + border: none +} + +li,ol,ul { + list-style: none +} + +button,input,select,textarea { + font: 100% Verdana,Helvetica,Arial,sans-serif; + outline: 0; + border: 1px solid #dbdbdb; + width: 100%; +} + +input { + font: 100% Verdana,Helvetica,Arial,sans-serif; + outline: 0; + border: 1px solid #dbdbdb; + width: 100%; +} + +textarea { + padding: 5px +} + +button[disabled],input[disabled] { + cursor: not-allowed +} + +b { + font-weight: 400 +} + +table { + border-collapse: collapse +}