diff --git a/江可飞/小程序开发/app.wxss b/江可飞/小程序开发/app.wxss index 06c6fc9..b6d706e 100644 --- a/江可飞/小程序开发/app.wxss +++ b/江可飞/小程序开发/app.wxss @@ -1,4 +1,6 @@ /**app.wxss**/ +@import 'weui.wxss'; +@import "html-view/index.wxss"; .container { height: 100%; display: flex; @@ -8,3 +10,11 @@ padding: 200rpx 0; box-sizing: border-box; } + +.containers { + height: 100%; + flex-direction: column; + align-items: center; + justify-content: space-between; + box-sizing: border-box; +} \ No newline at end of file diff --git a/江可飞/小程序开发/html-view/each/default.js b/江可飞/小程序开发/html-view/each/default.js new file mode 100644 index 0000000..604014b --- /dev/null +++ b/江可飞/小程序开发/html-view/each/default.js @@ -0,0 +1,79 @@ +const html5Entities = require('../vendors/html5-entities') +const { windowWidth } = wx.getSystemInfoSync() + +module.exports = item => { + // decode html entities + if (item.type === 'Text') { + item.content = html5Entities.decode(item.content) + return + } + + //