clientWidth isn't working?
This commit is contained in:
parent
660f028c03
commit
8dd39e1ee0
|
@ -2,7 +2,7 @@
|
|||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var link = document.getElementsByTagName('A');
|
||||
for (var i = 0; i < link.length; i++) {
|
||||
if (link[i].clientWidth > 460) {
|
||||
if (link[i].offsetWidth > 460) {
|
||||
link[i].classList.add('long')
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue