合集-HTML
摘要:<!DOCTYPE html> <html lang="zh_CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>可拖拽非模态
阅读全文
摘要:引入下面的样式表后 -webkit-animation: tada 1s ease 0.3s infinite both; -webkit-animation: name duration timing-function delay iteration_count direction animati
阅读全文
摘要:目录一. 绝对位置二. 相对位置 一. 绝对位置 网页元素的绝对位置,指该元素的左上角相对于整张网页左上角的坐标。无论网页滚动条如何滚动,它都是不会变化的。 // 获取元素的绝对位置坐标(相对于页面左上角) function getElementPagePosition(element){ //计算
阅读全文