摘要:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style> #div1 {width:100px; height:150px; background:red; position:absolute; 阅读全文
摘要:
Style top 属性 Style 对象 定义和用法 top 属性设置或返回定位元素的顶部位置。 该属性规定了元素的顶部位置,包括:内边距、滚动条、边框和外边距。 提示:一个定位元素是元素的 position 属性被设置为:relative(相对)、absolute(绝对)或 fixed(固定)。 阅读全文
摘要:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style> #div1 {width:100px; height:100px; background:red; position:absolute; 阅读全文