- Chrome 警告: Page layout may be unexpected due to Quirks Mode
文档加上
<!DOCTYPE html>
- 修改后一个悬浮的Div 位置错误
TipDiv.style.left = event.clientX;
...
修改后为
TipDiv.style.left = '' + event.clientX + 'px';
TipDiv.style.top = '' + y + 'px';
TipDiv.style.display = 'block';
TipDiv.innerHTML = "<span style='color:white;'>" + texts + "</span>";
标签:clientX,style,TipDiv,px,笔记,js,hrml,event
From: https://www.cnblogs.com/zzz3265/p/17812419.html