javascript - How to set the width of the image in the following case? -


i have image, want set width in javascript.

it written in following format, how set width?

create("td",{colspan:"4",innerhtml:"<img src='"  + imagepath +  "images/categorieslogos.jpg'> style= 'width:900px'"},"space1"); 

here imgepath variable. picks image, how assign width?

tried use style way shown in code.

the inline style tag outside of img tag.

try this:

create("td",{colspan:"4",innerhtml:"<img src='"  + imagepath +  "images/categorieslogos.jpg' style= 'width:900px'>"},"space1"); 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -