Multiple annotations found at this line: – Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents. – Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents.
1 2 3 |
<table cellpadding='0' cellspacing='0'> (X) |
HTML5 CSS 로 수정
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<style type="text/css"> //CSS Replacement for cellpadding='0': table { border-spacing:0; border-collapse:collapse; } // CSS Replacement for cellspacing='0': table td, table th { padding: 0; } </style> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<style type="text/css"> /* CSS Replacement for cellpadding='0': */ table.MyTestClass { background-color: #FFFF00; border-spacing: 0; border-collapse: collapse; } /* CSS Replacement for cellspacing='0': */ table.MyTestClass td { padding: 0; vertical-align: top; } /* CSS Replacement for cellspacing='0': */ table.MyTestClass th { padding: 0; vertical-align: top; } </style> |
참조 : https://wiki.devknight.com/wiki/3/cellpadding0-and-cellspacing0-replacement-for-html5