#site-title
텍스트 with a fixed-size image을 바꿀 수 있습니다. 문제가 없습니다.# site-title을 RESIZABLE 이미지로 바꾸는 방법은 무엇입니까?
이제 Twenty11의 WordPresse 헤더처럼 브라우저의 크기에 따라 자동으로 크기를 조정하고 싶습니다.
불을 지르고 그 책임이있는 CSS는 것을 저에게 말한다 :
#site-title {
text-indent: -9999px;
width: 100%; /* 980px; width of the image file. */
height: auto; /* 128px; height of the image file. */
margin: 0px 0 0 0;
padding: 0em 0 0;
background: url(images/header.png) white no-repeat;
font-size: 1px;
line-height: 1px;
text-decoration: none;
}
이 정말 작동하지 않습니다 :이 사이트
#branding img {
height: auto;
margin-bottom: -7px;
width: 100%;
}
하지만 사이트 제목이 복사 할 때 - 타이틀 이미지는 동일한 원본 크기를 유지합니다.
새로운 WordPress의 "크기 조정 마법"기능을 만들기 위해 내가해야 할 일이 있습니까?
이것은 CSS 질문이며 WordPress의 질문이 아닙니다. –
@ m0r7if3r 확실한가요? 내 게시물에서 볼 수 있듯이 [CSS 방법] (http://allaboutbasic.com/2011/06/15/wordpress-com-theme-twenty-eleven-css-style-sheet-modification-change -site-titledescriptionpost-titlecommentsmenussidebar-and-more /)가 있지만, 매우 트릭이 필요하며 이는 WordPress에만 해당됩니다. 아마도'functions.php'에있는 뭔가? – ef2011
그것은 단지 [CSS3 미디어 쿼리] (http://webdesignerwall.com/tutorials/responsive-design-with-css3-media-queries)입니다. wordpress는 아무 것도 없습니다. twentyeleven을 위해 style.css의 끝 부분을 보면 알 수 있습니다. –