固定在左上角,固定宽度,采用的是绝对(absolute)定位
2007-05-24 10:50
369 查看
#content {
position: absolute;
top: 0px;
left: 0px;
padding: 10px;
margin: 20px;
background: #FFF;
border: 5px solid #666;
width: 400px; /* ie5win fudge begins */
voice-family: "/"}/"";
voice-family:inherit;
width: 370px;
}
html>body #content {
width: 370px; /* ie5win fudge ends */
}
position: absolute;
top: 0px;
left: 0px;
padding: 10px;
margin: 20px;
background: #FFF;
border: 5px solid #666;
width: 400px; /* ie5win fudge begins */
voice-family: "/"}/"";
voice-family:inherit;
width: 370px;
}
html>body #content {
width: 370px; /* ie5win fudge ends */
}
相关文章推荐
- 【CSS3】---层模型position之fixed固定定位、absolute绝对定位和relative相对定位
- 一列固定宽度布局和背景图片绝对定位的实现代码
- 1、绝对定位(position: absolute) 2、相对定位(position: relative) 3、固定定位(position: fixed)
- Javascript 瀑布流实现的两种方式:固定列数的浮动布局与绝对定位自适应宽度
- 绝对定位absolute,可以用left:50%加上margin-left:(宽度/2),来实现绝对定位的居中
- 【CSS3】---层模型position之fixed固定定位、absolute绝对定位和relative相对定位
- css 绝对定位(absolute)和固定定位(fixed)
- 【CSS3】---层模型position之fixed固定定位、absolute绝对定位和relative相对定位
- 通过绝对定位absolute="fixed"实现网页内容的固定层效果
- 利用绝对定位实现两列右边固定宽度左边自适应布局
- 一列固定宽度布局和背景图片绝对定位
- absolute绝对定位可以实现相对定位
- 前端学习 -- Html&Css -- 相对定位 绝对定位 固定定位
- JS采用绝对定位实现回到顶部效果完整实例
- css基础 绝对定位 position:absolute 相对于定位的祖先元素进行定位
- h5的相对定位、绝对定位、固定定位以及案例练习
- positon:absolute; 复习绝对定位
- CSS 相对/绝对(relative/absolute)定位系列(四)
- absolute绝对定位的非绝对定位用法
- div+css基础——6.采用div定位技术对div进行排版(绝对定位,不指定父容器)