ﺮﯾﻭﺎﺼﺗ :5 ﭖﺮﺘﺳﺍ ﺕﻮﺑ


فهرست مطالب

    نمایش فهرست مطالب

ﺮﯾﻮﺼﺗ ﻝﺎﮑﺷﺍ

Rounded Corners:

Paris

Circle:

NYC

Thumbnail:

San Fran

ﺩﺮﮔ ﯼﺎﻫ ﻪﺷﻮﮔ

:ﺪﻨﮐ ﯽﻣ ﻪﻓﺎﺿﺍ ﺮﯾﻮﺼﺗ ﻪﺑ ﺍﺭ ﺩﺮﮔ ﯼﺎﻫ ﻪﺷﻮﮔ .rounded

ﻝﺎﺜﻣ

<img src="cinqueterre.jpg" class="rounded" alt="Cinque Terre">

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container mt-3">
  <h2>Rounded Corners</h2>
  <p>The .rounded class adds rounded corners to an image:</p>            
  <img src="cinqueterre.jpg" class="rounded" alt="Cinque Terre" width="304" height="236"> 
</div>

</body>
</html>

ﻩﺮﯾﺍﺩ

:ﺩﺭﻭﺁ ﯽﻣ ﺭﺩ ﻩﺮﯾﺍﺩ ﮏﯾ ﻞﮑﺷ ﻪﺑ ﺍﺭ ﺮﯾﻮﺼﺗ .rounded-circle

ﻝﺎﺜﻣ

<img src="cinqueterre.jpg" class="rounded-circle" alt="Cinque Terre">

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container mt-3">
  <h2>Circle</h2>
  <p>The .rounded-circle class shapes the image to a circle:</p>            
  <img src="cinqueterre.jpg" class="rounded-circle" alt="Cinque Terre" width="304" height="236"> 
</div>

</body>
</html>

ﯽﺘﺸﮕﻧﺍ ﺪﻨﺑ

ﺪﻫﺩ ﯽﻣ ﻞﮑﺷ ﮏﭼﻮﮐ ﺮﯾﻮﺼﺗ ﮏﯾ ﻪﺑ ﺍﺭ ﺮﯾﻮﺼﺗ .img-thumbnail<

ﻝﺎﺜﻣ

<img src="cinqueterre.jpg" class="img-thumbnail" alt="Cinque Terre">

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container mt-3">
  <h2>Thumbnail</h2>
  <p>The .img-thumbnail class creates a thumbnail of the image:</p>            
  <img src="cinqueterre.jpg" class="img-thumbnail" alt="Cinque Terre" width="304" height="236"> 
</div>

</body>
</html>

ﺮﯾﻭﺎﺼﺗ ﻥﺩﺮﮐ ﺯﺍﺮﺗ

: .ﺪﯿﻨﮐ ﺭﻭﺎﻨﺷ ﺖﺳﺍﺭ ﺖﻤﺳ ﻪﺑ .float-end ﺎﺑ ﺎﯾ ﭗﭼ

ﻝﺎﺜﻣ

 <img src="paris.jpg" class="float-start"> 
<img src="paris.jpg" class="float-end"> 

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container mt-3">
  <h2>Aligning images</h2>
  <p>Use the float classes to float the image to the left or to the right:</p> 
  <img src="paris.jpg" class="float-start" alt="Paris" width="304" height="236"> 
  <img src="paris.jpg" class="float-end" alt="Paris" width="304" height="236"> 
</div>

</body>
</html>

ﺰﮐﺮﻣ ﺭﺩ ﺮﯾﻮﺼﺗ

:ﺮﯾﻮﺼﺗ ﻪﺑ (display:block) .ﺪﯿﻫﺩ ﺭﺍﺮﻗ ﺰﮐﺮﻣ ﺭﺩ ﺍﺭ ﺮﯾﻮﺼﺗ ﮏﯾ

ﻝﺎﺜﻣ

 <img src="paris.jpg" class="mx-auto d-block">

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container mt-3">
  <h2>Centered Image</h2>
  <p>Center an image by adding the utility classes .mx-auto (margin:auto) and .d-block (display:block) to the image:</p> 
  <img src="paris.jpg" class="mx-auto d-block" style="width:50%"> 
</div>

</body>
</html>

ﺍﺮﮔ ﺶﻨﮐﺍﻭ ﺮﯾﻭﺎﺼﺗ

ﺭﺎﮐﺩﻮﺧ ﺕﺭﻮﺻ ﻪﺑ ﺍﺮﮔ ﺶﻨﮐﺍﻭ ﺮﯾﻭﺎﺼﺗ .ﺭﻮﻄﻨﯿﻤﻫ ﻢﻫ ﺎﻫ ﺶﯾﺎﻤﻧ ﻪﺤﻔﺻ .ﺪﻨﺘﺴﻫ ﺎﻫ ﻩﺯﺍﺪﻧﺍ ﻪﻤﻫ

ﺪﯿﻨﮐ ﺩﺎﺠﯾﺍ ﻮﮕﺨﺳﺎﭘ ﺮﯾﻭﺎﺼﺗ .img-fluid ﺱﻼﮐ ﮏﯾ ﻥﺩ

max-width: 100%; ﺩﻮﺷ ﯽﻣ ﻝﺎﻤﻋﺍ

ﻝﺎﺜﻣ

<img class="img-fluid" src="ny.jpg" alt="New York"> 

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container mt-3">
  <h2>Image</h2>
  <p>The .img-fluid class makes the image scale nicely to the parent element (resize the browser window to see the effect):</p>
  <img class="img-fluid" src="ny.jpg" alt="New York" width="1100" height="500"> 
</div>

</body>
</html>

تمامی حقوق محفوظ است. © BasicIT.org • 2023-2024