, 방화범과 동일하지 않습니다 : http://talentforceinc.com/Employers_Home.html.
여기에 언급 된 특정 코드는 http://www.i-simplyrecruit.com/isrjobs/talentforce/ShowJobColors.asp이며 참조 용으로 아래에 표시되어 있습니다.
첫 번째 문제는 (언급했듯이) 코드가 추악합니다. 는 것을보고 매우 어렵다는 사실 그래서 추한 :
미완성 HTML 공간 엔티티 (& NBSP;)이있다
- 은 "확고히하는 서비스 ..."와 "문서 레이아웃 전문가"세포가. 이로 인해 끝 태그의 일부가 무시됩니다.
- 너비 및 높이 HTML 특성은 정수 값만입니다. "px"를 지정하지 마십시오. 전의. 450px 대신 450.
- ("사이드 바"의 클래스를 가진) 각각의 셀의 폐쇄 <DIV> 태그 종료 <TD> 및 <TR> 뒤에 배치된다.
이러한 오류를 수정 한 후에 테이블 너비를 185로 설정하고 각 테이블 셀 너비를 100으로 설정했음을 알았습니다. 테이블 셀이 테이블의 전체 너비를 차지하지 않도록 유지합니다. 그 안의 텍스트는 테이블의 너비 내에 집중 될 수 없습니다. 셀 너비를 제거하면이 문제가 해결됩니다.
내가 수정되지 않은 원래 코드로 테스트 페이지를 업로드 한 내 변화의 결과 : http://demo.raleighbuckner.com/so/1303302/
원래 HTML 참조 :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://demo.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Latest Jobs</title>
<link href="http://www.talentforceinc.com/talentforce.css" rel="stylesheet" type="text/css" />
<!--[if LTE IE 7]>
<link href="http://www.talentforceinc.com/talentforce_IE.css" rel="stylesheet" type="text/css" />
<![endif]-->
<style type="text/css">
<!--
td {
text-align: center;
align: center;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function ShowMore(pID)
{
var pParm = "Candidates_jobSearch3.asp?id=" + pID;
MM_openBrWindow(pParm,"jobDetail","scrollbars=yes,width=600,height=600 resizable=no");
}
//-->
</script>
</head>
<body>
<table width=185px bgcolor=white border=0 cellpadding=0 cellspacing=0 style='text-align:center'><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#00AADD'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("P0006008-0032");'>Contractor Engineer Specialist</a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#AADDEE'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("N0003008-0077");'>.Net & Sql server An</a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#FFCC55'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("S5696007-0004");'>Cementing Service Sup/Deep&nbs</a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#22AA55'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("S4082007-0012");'>Coil Tubing Operator/Equipment</a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#9999AA'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("L0008004-0157");'>Loads Analysis </a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#EE9922'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("D6452009-0448");'>Document Layout Specialist&nbs</a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#CCCCCC'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("L0008004-0161");'>Technical Trainer </a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#00AAAA'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("A0029005-0025");'>Q.A. Engineer </a></div></td></tr></div><tr><td height=40 width=100px align=center style='text-align:center' valign=middle bgcolor='#888888'><div class='sidebar'><div align='center'><a style='text-align:center' href='#' onclick='javascript:ShowMore("E0001008-0090");'>Clerk Secret Clearance</a></div></td></tr></div></table>
</body>
</html>
링크가 작동하지 않습니다. – Pat
나를 위해 일하지 않는다 – Guilherme