Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if I want to render a img tag,how can i do it? #152

Open
likyh opened this issue Nov 8, 2016 · 2 comments
Open

if I want to render a img tag,how can i do it? #152

likyh opened this issue Nov 8, 2016 · 2 comments

Comments

@likyh
Copy link

likyh commented Nov 8, 2016

if I want to render a img tag,how can i do it?
<img src='' id='a' />
{ a:"http://......." }

@likyh
Copy link
Author

likyh commented Nov 8, 2016

ok, i know. maybe i should use driver to do it.

@woubuc
Copy link

woubuc commented Nov 8, 2016

Rendering an image means setting the src property of the image. Use class name instead of ID, and specify the src parameter.

<img class="myclass">

{
  myclass: {
    src: 'http://...'
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants