일반적인 CSS hack 코드
  
  
  
  
   
   
   
   - body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td { 
- margin: 0; 
- padding: 0; 
- } 
둘.clearfix: 외부 용기로 DIV가 있다면 내부 DIV에float 스타일이 설정되어 있으면 외부 용기 DIV는 내부에clear가 없기 때문에 펼칠 수 없습니다.다음 코드로 해결할 수 있습니다.
  
  
  
  
   
   
   
   - .clearfix:after{ 
-     content:"."; 
-     display:block; 
-     height:0; 
-     clear:both; 
-     visibility:hidden; 
- } 
-  
- * html .clearfix{ 
-     height:1%; 
- } 
셋.ie6은position:fixed를 지원하지 않습니다.의 BUG
  
  
  
  
   
   
   
   - /*  IE6         */ 
- .ie6fixedTL{position:fixed;left:0;top:0} 
- .ie6fixedBR{position:fixed;right:0;bottom:0} 
- /* IE6         */ 
- /*   IE6  bug */ 
- * html,* html body{background-image:url(about:blank);background-attachment:fixed} 
- * html .ie6fixedTL{position:absolute;left:expression(eval(document.documentElement.scrollLeft));top:expression(eval(document.documentElement.scrollTop))} 
- * html .ie6fixedBR{position:absolute;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)))} 
넷.ie6는 max-width, max-height,min-width,min-height의 BUG를 지원하지 않습니다.
  
  
  
  
   
   
   
   - _width:expression((documentElement.clientWidth < 500) ? "500px" : "auto" );//  min-width 
- _width:expression((documentElement.clientWidth >500) ? "500px" : "auto" );//  max-width 
- _height:expression((documentElement.clientHeight<500) ? "500px" :"auto");//  min-height 
- _height:expression((documentElement.clientHeight>500) ? "500px" :"auto");//  max-height 
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
장치 너비가 특정 너비보다 크고 특정 너비보다 작을 때 웹 페이지 CSS 스타일을 변경하는 방법은 무엇입니까?장치 너비가 특정 너비보다 크고 특정 너비보다 작을 때 웹 페이지 CSS 스타일을 변경하려면 @media의 미디어 쿼리 구문을 사용한 다음 구문을 작성하여 스타일의 최소 너비를 정의해야 합니다. 적용된 후 and라는...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.