随笔分类 - CSS
摘要:HTML: CSS: 效果: 主要是用到相对定位。同时设置了top和margin
阅读全文
摘要:-moz-user-select:none;/*firefox*/-webkit-user-select:none;/*webkit*/-ms-user-select:none;/*ie10*/-khtml-user-select:none;/*早期浏览器*/user-select:none;IE1...
阅读全文
摘要:在实际开发中用到的都是link,基本没有接触过@import,偶然看到说link与 @import的区别,便记录下来。页面中使用CSS的方式主要有3种:1.行内添加定义style属性2.页面头部内嵌调用3.页面头部内嵌调用(link)4.页面头部内嵌调用(@import)link和@import都是...
阅读全文
摘要:这里用的是CSS Sticky Footer,支持主流浏览器(包括IE6)html ©css*{margin:0;}html,body{height:100%;}.wrapper{min-height:100%;height:auto !important;height:100%; ma...
阅读全文
摘要:Static定位HTML元素的默认,即没有定位,元素出现在正常的流中。静态定位的元素不会受到top/bottom/left/right影响Fixed定位元素的位置相对于浏览器窗口是固定位置。即使窗口是滚动的也不会移动也就是说Fixed的元素位置是相对于浏览器窗口的注意:Fixed定位在IE7/IE8...
阅读全文
摘要:方法一:HTML:页头区域页面内容页脚CSS:html,body{margin:0;padding:0;height:100%;}#container{min-height:100%;height:auto !important;height:100%;position:relative;}#hea...
阅读全文
摘要:html:css:效果如下图:
阅读全文

浙公网安备 33010602011771号