diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 06dca78b9..12ca77115 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -174,7 +174,7 @@ export const let value; -// if ('TABLE' === name || 'TD' === name) { +// if ('TABLE' === name || 'TD' === name || 'TH' === name) { if (hasAttribute('width')) { value = getAttribute('width'); oStyle.width = value.includes('%') ? value : value + 'px'; @@ -183,7 +183,9 @@ export const value = oStyle.width; if (value && !value.includes('%')) { oStyle.maxWidth = value; - oStyle.width = '100%'; + if ('TD' !== name && 'TH' !== name) { + oStyle.width = '100%'; + } } // } else if ('A' === name) {