css
来源:互联网 发布:京东众包软件打不开 编辑:程序博客网 时间:2024/06/05 20:19
position:fixed
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>相对参照元素进行定位</title><style type="text/css">div{border:2px red solid;}#box1{ width:200px; height:200px; position:relative; top:50px;left:30px;}#box2{ position:absolute;top:20px;left:30px; }/*下面是任务部分*/#box3{ width:200px; height:200px; }#box4{ width:99%; }</style></head><body><div id="box1"><div id="box2">相对参照元素进行定位</div></div><h1>下面是任务部分</h1><div id="box3"> <img src="http://img.mukewang.com/541a7d8a00018cf102000200.jpg"> <div id="box4">当我还是三年级的学生时是一个害羞的小女生。</div></div></body></html>
0 0
- CSS
- css
- css
- css
- css
- CSS
- CSS
- css
- css
- CSS
- css
- css
- CSS
- css
- CSS
- css
- CSS
- css
- rtsp、rtp tcp和udp链接方式区别
- 迷茫的原因
- 常用Sql(一点都不常用)
- Visual Studio使用Web Deploy远程发布网站及其配置
- 【C语言 数据结构】三元组的实现 最终作业版
- css
- 泛型[3]泛型嵌套
- tomcat另建工作区(workspace)
- ROSArduinoBridge中PID 在 ros端 与arduino端的工作机制
- HDU 1029 Ignatius and the Princess IV
- C. Andryusha and Colored Balloons
- 装配Bean
- Android -- RecyclerView实现顶部吸附效果
- 斐波那契堆(Fibonacci Heap)