முக்கிய உள்ளடக்கத்திற்கு செல்க டாக்ஸ் வழிசெலுத்தலுக்கு செல்க
in English

நீட்டிக்கப்பட்ட இணைப்பு

CSS வழியாக உள்ளமைக்கப்பட்ட இணைப்பை "நீட்டுவதன்" மூலம் எந்த HTML உறுப்பு அல்லது பூட்ஸ்டார்ப் கூறுகளையும் கிளிக் செய்யக்கூடியதாக மாற்றவும்.

போலி உறுப்பு மூலம் கிளிக் செய்யக்கூடிய பிளாக்கைக் கொண்டிருக்கும்.stretched-link இணைப்பைச் சேர்க்கவும் . பெரும்பாலான சந்தர்ப்பங்களில், வகுப்புடனான இணைப்பைக் கொண்ட ஒரு உறுப்பு கிளிக் செய்யக்கூடியது என்று அர்த்தம் . CSS எவ்வாறு செயல்படுகிறது என்பதை கவனத்தில் கொள்ளவும் , பெரும்பாலான அட்டவணை உறுப்புகளுடன் கலக்க முடியாது.::afterposition: relative;.stretched-linkposition.stretched-link

கார்டுகள் பூட்ஸ்டார்ப்பில் இயல்பாகவே இருக்கும், எனவே இந்த விஷயத்தில் வேறு எந்த HTML மாற்றங்களும் இல்லாமல் கார்டில் உள்ள இணைப்பில் வகுப்பை position: relativeபாதுகாப்பாக சேர்க்கலாம் ..stretched-link

நீட்டிக்கப்பட்ட இணைப்புகளுடன் பல இணைப்புகள் மற்றும் தட்டு இலக்குகள் பரிந்துரைக்கப்படவில்லை. இருப்பினும், சில positionமற்றும் z-indexபாணிகள் இது தேவைப்பட்டால் உதவலாம்.

Card image cap
நீட்டிக்கப்பட்ட இணைப்புடன் கூடிய அட்டை

கார்டின் தலைப்பில் உருவாக்க மற்றும் கார்டின் உள்ளடக்கத்தின் பெரும்பகுதியை உருவாக்க சில விரைவான எடுத்துக்காட்டு உரை.

எங்காவது போ
<div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
    <h5 class="card-title">Card with stretched link</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
    <a href="#" class="btn btn-primary stretched-link">Go somewhere</a>
  </div>
</div>

பெரும்பாலான தனிப்பயன் கூறுகள் position: relativeஇயல்புநிலையில் இல்லை, எனவே .position-relativeஇணைப்பு மூல உறுப்புக்கு வெளியே நீட்டுவதைத் தடுக்க இங்கே சேர்க்க வேண்டும்.

Generic placeholder image
நீட்டிக்கப்பட்ட இணைப்புடன் தனிப்பயன் கூறு

இது தனிப்பயன் கூறுக்கான சில ஒதுக்கிட உள்ளடக்கமாகும். இது சில நிஜ உலக உள்ளடக்கம் எப்படி இருக்கும் என்பதைப் பிரதிபலிக்கும் நோக்கம் கொண்டது, மேலும் கூறுக்கு சிறிது உடல் மற்றும் அளவைக் கொடுக்க அதை இங்கே பயன்படுத்துகிறோம்.

எங்காவது போ
<div class="d-flex position-relative">
  <img src="..." class="flex-shrink-0 me-3" alt="...">
  <div>
    <h5 class="mt-0">Custom component with stretched link</h5>
    <p>This is some placeholder content for the custom component. It is intended to mimic what some real-world content would look like, and we're using it here to give the component a bit of body and size.</p>
    <a href="#" class="stretched-link">Go somewhere</a>
  </div>
</div>
Generic placeholder image
நீட்டிக்கப்பட்ட இணைப்புடன் நெடுவரிசைகள்

இந்த மற்ற தனிப்பயன் கூறுக்கான ஒதுக்கிட உள்ளடக்கத்தின் மற்றொரு நிகழ்வு. இது சில நிஜ உலக உள்ளடக்கம் எப்படி இருக்கும் என்பதைப் பிரதிபலிக்கும் நோக்கம் கொண்டது, மேலும் கூறுக்கு சிறிது உடல் மற்றும் அளவைக் கொடுக்க அதை இங்கே பயன்படுத்துகிறோம்.

எங்காவது போ
<div class="row g-0 bg-light position-relative">
  <div class="col-md-6 mb-md-0 p-md-4">
    <img src="..." class="w-100" alt="...">
  </div>
  <div class="col-md-6 p-4 ps-md-0">
    <h5 class="mt-0">Columns with stretched link</h5>
    <p>Another instance of placeholder content for this other custom component. It is intended to mimic what some real-world content would look like, and we're using it here to give the component a bit of body and size.</p>
    <a href="#" class="stretched-link">Go somewhere</a>
  </div>
</div>

அடங்கிய தொகுதியை அடையாளம் காணுதல்

நீட்டிக்கப்பட்ட இணைப்பு வேலை செய்யவில்லை எனில், கொண்டிருக்கும் பிளாக் காரணமாக இருக்கலாம். பின்வரும் CSS பண்புகள் ஒரு உறுப்பைக் கொண்டிருக்கும் தொகுதியாக மாற்றும்:

  • தவிர வேறு ஒரு positionமதிப்புstatic
  • A transformஅல்லது perspectiveவேறு மதிப்புnone
  • ஒரு will-changeமதிப்பு transformஅல்லதுperspective
  • filterதவிர வேறு ஒரு மதிப்பு noneஅல்லது ஒரு will-changeமதிப்பு filter(Firefox இல் மட்டும் வேலை செய்யும்)
Card image cap
நீட்டிக்கப்பட்ட இணைப்புகள் கொண்ட அட்டை

கார்டின் தலைப்பில் உருவாக்க மற்றும் கார்டின் உள்ளடக்கத்தின் பெரும்பகுதியை உருவாக்க சில விரைவான எடுத்துக்காட்டு உரை.

நீட்டிக்கப்பட்ட இணைப்பு இங்கே வேலை செய்யாது, ஏனெனில் position: relativeஇணைப்பில் சேர்க்கப்பட்டுள்ளது

இந்த நீட்டிக்கப்பட்ட இணைப்பு -tag மீது மட்டுமே பரவுகிறது p, ஏனெனில் அதற்கு ஒரு மாற்றம் பயன்படுத்தப்படுகிறது.

<div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
    <h5 class="card-title">Card with stretched links</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
    <p class="card-text">
      <a href="#" class="stretched-link text-danger" style="position: relative;">Stretched link will not work here, because <code>position: relative</code> is added to the link</a>
    </p>
    <p class="card-text bg-light" style="transform: rotate(0);">
      This <a href="#" class="text-warning stretched-link">stretched link</a> will only be spread over the <code>p</code>-tag, because a transform is applied to it.
    </p>
  </div>
</div>