Specify image size in GitHub markdown using ems (or other unit)
问题 I've seen that it's possible to specify the image size using pixels, but pixels isn't a great way to specify image size. I've tried <img src="myimg.png" style="width:20em" /> but that didn't work (although Markdown Viewer for Chrome rendered it) Is it even possible to specify the size with another size unit other than pixels? 回答1: No, you need to define width and/or height attributes to define an image's size, and those attributes only support pixel units. GitHub does no support using the