画像サイズ(width)
<html> <head> <title>画像サイズ</title> <style type="text/css"> <!-- .img1 { width: 100px; height: 100px; } .img2 { width: 400px; height: 400px; } //--> </style> </head> <body> <img src="../../sample/img/img.jpg" class="img1"><br> <br> <img src="../../sample/img/img.jpg" class="img2"> </body> </html>
〔 実行する 〕