링크 (이미지, 텍스트 등)가 라우팅 될 대상을 변경하려고 할 때마다 항상 루트 URL 끝에 추가됩니다.
예:
<a href="google.com"> will link to root.url\google.com
(root.url is not the actual domain name)
HTML :
<header class="header">
<div class="header-inner">
{{search_in_category}}
<div class="logo"><a href="google.com"></div>
</div>
</header>
CSS :
.logo {
float: left;
}
.logo a {
display: inline-block;
line-height: 130px;
}
.logo img {
max-height: 60px;
vertical-align: middle;
}
이 일을하는 특별한 이유가 있습니까?
속성 에서 도메인을 추가 http://
하거나 https://
앞에 추가 href
합니다.
<a href="https://google.com">Link text</a>
적절하다고 생각 될 때마다 프로토콜 기준 URL을 사용할 수도 있습니다 . 현재 페이지를 보는 데 사용되는 것과 동일한 프로토콜을 사용하는 것으로 자동 해석됩니다.
<a href="//example.com/sample.jpg">Link text</a>
(이는 http://
및 https://
프로토콜을 통해 사용 가능한 타사 리소스에 연결할 때 가장 유용 합니다.)
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다