Giter Club home page Giter Club logo

Comments (6)

BuYiErSan avatar BuYiErSan commented on May 26, 2024

image
补充一下,两个源码的差异

from mp-html.

jin-yufeng avatar jin-yufeng commented on May 26, 2024

源码要构建后再用
https://jin-yufeng.gitee.io/mp-html/#/advanced/develop

from mp-html.

BuYiErSan avatar BuYiErSan commented on May 26, 2024

1、构建过了哦, npm run build:weixin
2、直接clone 的项目 dist 里面有发布好的,我直接贴进去,图片显示就不正常了
3、我就执行了 1、 的构建操作
4、结果还是一样

from mp-html.

jin-yufeng avatar jin-yufeng commented on May 26, 2024

那你的直接引用是指什么
html内容是什么
描述清楚

from mp-html.

BuYiErSan avatar BuYiErSan commented on May 26, 2024

正常

1、使用 npm install mp-html
2、{"usingComponents": {"mp-html": "mp-html"}}
3、< mp-html content="{{html}}" />

异常

1、npm run build:weixin
2、将源码中对应平台的代码包(dist/platform)拷贝到 components 目录下,更名为 mp-html
3、{ "usingComponents": {"mp-html": "/components/mp-html/index"}}
4、< mp-html content="{{html}}" />

html内容

落地页风格.jpg

正常效果图

image

异常效果图

image

from mp-html.

BuYiErSan avatar BuYiErSan commented on May 26, 2024

我再全局样式增加了
image {
max-width: 100%;
}
解决了这个问题,不知道是bug还是我这里环境的问题,谢谢作者了

from mp-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.