- Home /
in webgl , how to change #canvas property?
i bulid project to website
but in mobile devices , resolution is low
so i try to change canvas property , the id is #canvas
but some strange , i can change style.width and style.height of #canvas
it only have width and height , don't have style.width and style.height
if i change width or height , well also change style.width and style.height , so the canvas well too big, over the screen
i want style.width and style.height value like device width and height
and width height more then , so i can get high DPI
how to do this?
Comment