689 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			689 B
		
	
	
	
	
	
	
	
title, localeTitle
| title | localeTitle | 
|---|---|
| Img Width Attribute | Img宽度属性 | 
Img宽度属性
HTML“width”属性指的是图像的宽度。引号中的值是像素数量。
例如,如果您已经通过src属性设置了图像链接,则可以添加width属性,如下所示:
<!DOCTYPE html> 
 <html lang="en"> 
  <head> 
    <title>Img Width Attribute</title> 
  </head> 
  <body> 
    <img src="image.png" alt="Image" width="100"/> 
  </body> 
 </html> 
在上面的代码段中,有一个图像标记,图像的宽度设置为100像素。 width="100"