CSS记录

图片大小限制
.pic img {

vertical-align: middle; max-width: 125px; max-height: 125px; 

width: expression(this.width >125 && this.height < this.width ? 125: true); 

height: expression(this.height > 125 ? 125: true); 

}

文字两端对齐
text-align:justify;text-justify:inter-ideograph;

最小高度(IE/FF)
min-height: 300px;height: auto !important;height:300px;

限制单行文字,溢出用...代替
overflow: hidden;white-space: nowrap;text-overflow:ellipsis;

li隐藏点
list-style:none;

线条table
.form_table {
border-collapse:collapse;
border:solid #C2DEF3;
border-width:1px 0 0 1px;
}
.form_table caption {font-size:14px;font-weight:bolder;}
.form_table th,table td {
border:solid #C2DEF3;border-width:0 1px 1px 0;
padding:5px;line-height: 25px;
}
.form_table th {text-align:right;background-color: #e9f1fc;font-weight:normal;}

IE8用IE7效果

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

避免表格table被撑开变形(IE)
table {
  table-layout: fixed;
  word-wrap:break-word;
}


文字过多时自动换行
white-space:normal;word-wrap:break-word;
连续的英文字符和阿拉伯数字,使用word-wrap:break-word;或者word-break:break-all;实现强制断行,而Firefox没解决这个问题,可以加上overflow:auto/hidden;来控制字符溢出时出现滚动条或者隐藏。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值