img

n Ia bermaksud "gambar" dalam penghasilan halaman web; ;[Perubatan][=ganglia mesenterik inferior]Ganglia mesenterik inferior

responsif

英[rɪˈspɒnsɪv] AS[rɪˈspɑ:nsɪv]

responsif; responsif;

Gaya responsif img Bootstrap sintaks

Fungsi: Imej responsif (akan dilanjutkan dengan baik kepada elemen induk)

Gaya responsif img Bootstrap contoh

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>php中文网(php.cn)</title> 
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">  
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
	
<div class="container">
	<h2>图片</h2>
	<p> .img-responsive类让图片支持响应式,将很好地扩展到父元素 (通过改变窗口大小查看效果):</p>                  
	<img src="http://img.php.cn/upload/article/000/005/6

56/5af270fd37755429.jpg" class="img-responsive" alt="Cinque Terre" width="304" height="236"> 
</div>

</body>
</html>
Jalankan Instance »

Klik butang "Run Instance" untuk melihat contoh dalam talian