내 머리글에 h1 요소를 추가하려고하지만 화면 해상도가 변경 될 때 서로를 대체하는 머리글 (배경 이미지가 아님)에 태그를 사용하고 있습니다.H1 이미지 대체 대체
나는 기술
<h1 class="technique-four">
<a href="#">
<img src="images/header-image.jpg" alt="CSS-Tricks" />
</a>
</h1>
h1.technique-four {
width: 350px; height: 75px;
background: url("images/header-image.jpg");
text-indent: -9999px;
}
을 검토 한 ...하지만 내 레이아웃이 유체이기 때문에, 배경이 때 이미지의 변화를 볼 수 있습니다.
h1을 이미지로 바꾸어도됩니까?
을
<h1 class="headerhone">kb-k bwf-kb</h1>
<a href="#"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/720.jpg" class="show-on-phones"/></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/980_full.jpg" class="hide-on-phones"alt=""/></a>
(무시 PHP) 다음 H1에게 0의 높이 제공 : 난 그냥 뭔가를 할 수없는
h1.headerhone{
height:0px;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
} /*this was suggested to me as an alternative to the -9999px; thing.*/
것이 일을? 그것은 부정적인 SEO 의미 또는 유용성 문제가 있습니까?