源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> <style> html {height:100%;} body {height:100%;} img.normal {height:auto;} img.big {height:50%;} img.small {height:10%;} </style> </head> <body> <img class="normal" src="/images/logo.png" width="95" height="84" /><br> <img class="big" src="/images/logo.png" width="95" height="84" /><br> <img class="small" src="/images/logo.png" width="95" height="84" /> </body> </html>
運行結果