`
sundryl6i
  • 浏览: 65309 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论

相关CSS样式

    博客分类:
  • JSP
阅读更多
<style type="text/css">
 .scrollHid{overflow: hidden;}//隐藏滚动条
#full{position: absolute;background:#F7F7F7;left: 0;top: 0;display: none; z-index:2;filter:alpha(opacity=100);opacity :1.0}//遮罩层

</style>

  

 

背景图片拉伸:
参考资料:
http://www.zhangxinxu.com/css3/css3-background-size.php

background-size:cover;宽高都拉伸至100%
background-size:100% 90px;宽100%、高90px
IE9以上支持

/*IE下拉伸图片*/
参考资料:
http://www.cnblogs.com/strivers/archive/2010/12/12/1903848.html

filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/main/main_Input_bg.gif', sizingMethod='scale')

 

背景
background: url(../images/main/main_Input_bg.gif) no-repeat scroll left top;
序号 中文说明 标记语法 
1 背景颜色 {background-color:数值} 
2 背景图片 {background-image: url(URL)|none} 
3 背景重复 {background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y} 
4 背景固定 {background-attachment:fixed|scroll} 
5 背景定位 {background-position:数值|top|bottom|left|right|center} 
6 背影样式 {background:背景颜色|背景图象|背景重复|背景附件|背景位置} 

 

clear:both;//清除浮动

td{line-height:2em;}//table中td内容换行上下间距

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics