function checkOverflow() {
const element = document.getElementById('aaa');
const computedStyle = window.getComputedStyle(element);
const overflowStatus = computedStyle.overflow === 'hidden' ? "overflow: hidden" : "overflow is not hidden";
// Display the result in the result div
document.getElementById('result').textContent = overflowStatus;
}
// Execute the function to check overflow
checkOverflow();
メモ
この記事を読むのにかかる時間 1未満 分