2014-03-26 3 views
2

cfdocument를 만들었습니다. 나는 주황색 부분이 위와 같이 표시되는 의미 cfdocumentitem 바닥 글이 제대로 표시되지 않습니다.

enter image description here

주황색 몸 전체 페이지에 스트레칭 얻을 임 수없는

<cfdocumentitem type="footer" > 

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="##FF6F00" > 

<td align="right" style="font-size:10px"> 
<font color="##FFFFFF"> &copy; AT&T Intellectual Property. All rights reserved.<br>AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.</font>  
</td> 
</table> 
    </cfdocumentitem> 

아래로에 바닥 글이있다. 또한 내가 지정한 글꼴 크기가 렌더링되지 않습니다. 여기 내 스타일이 있습니다. 여기에 무엇이 잘못된지에 대한 아이디어가 있습니까?

+1

'CFDOCUMENT'이며, 확장자로 'CFDOCUMENTITEM'은 사용 가능한 CSS의 일부만을 사용합니다. https://wikidocs.adobe.com/wiki/display/coldfusionen/cfdocument 불행히도'align-content'는 그들 중 하나가 아닙니다. 폰트 크기에 관해서는, 마지막에';'를 잊지 마십시오. – Chester

답변

0

클래스를 스타일링하려면 속성 앞에 .을 입력해야합니다.

.test{ 
    color:#FFFFFF; 
    font-family:verdana; 
    font-size:4px; 
} 

.testone{align-content:stretch;} 

또한 cfdocumentitembody 100 % 폭 있는지 확인합니다.

+0

네, 있습니다. 클래스가 방금 업데이트되기 전에 오타 였고 여전히 작동하지 않습니다. cfdocumentitem에는 width 속성이 없습니다. – user747291

0

다음과 같이 변경을 시도해보십시오

  • 는 0에 <cfdocument> 태그의 오른쪽, 왼쪽과 위쪽 여백을 설정하고 바닥 글의 높이로 바닥 이익률은
  • 는의 주요 부분 확인 문서에 <body> 태그가 있습니다.
  • <body> 태그 위에 <style> 태그를 추가하고 본체 여백을 지정하십시오. 2cm
  • 지금
  • 설정 몸 마진 패딩
  • 0에에 테이블의 높이를 설정
  • 가 내에서이 body 태그 위의 바닥 글을 <style> 태그를 추가 <body> 태그에 바닥 글 테이블을 포장 당신의 cfdocument marginBottom

여기 코드는 지금 (내 단위로 주, 내가 지정한 cm)과 같아야 내용은 다음과 같습니다

<cfdocument format="pdf" marginBottom="1" marginLeft="0" marginRight="0" marginTop="0" unit="cm"> 
    <style type="text/css"> 
     body{ margin:2cm; } 
    </style> 
    <body> 
     <p>Page content</p> 
    </body> 
    <cfdocumentitem type="footer"> 
     <style type="text/css"> 
      body{ margin:0; padding:0; } 
      table{ height:1cm; }; 
     </style> 
     <body> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FF6F00" > 
       <td align="right" style="font-size:10px"> 
        <font color="#FFFFFF"> 
         &copy; AT&T Intellectual Property. All rights reserved. 
         <br>AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. 
        </font> 
       </td> 
      </table> 
     </body> 
    </cfdocumentitem> 
</cfdocument> 
관련 문제