Mar
16

DIV+CSS特别笔记

不指定
字体大小: | | RSS
分类: My life | 1371 次阅读
点击在新窗口中浏览此图片
对于因clear: both会引起IE和FF高度变化,通过如下方法解决:
[codes=css].clear {
    clear: both;
    height:1px;
    margin-top:-1px;
    overflow:hidden;
} [/codes]

IE6/IE7/Firefox的hack方法:
[codes=css]height:20px; /*For Firefox*/
*height:25px; /*For IE7 & IE6*/
_height:20px; /*For IE6*/[/codes]

文字两边对齐:
[codes=css]text-align:justify;
text-justify:inter-ideograph;[/codes]

1px的table:
[codes=css]table,td{border:1px solid black;
border-collapse: collapse;}[/codes]

网页上支持11号清晰中文字体:
[codes=css]tahoma
mingliu[/codes]
分享此文:
操作: 评论(0) | 引用(0)

Leave A Word:

打开HTML 打开UBB 打开表情 隐藏
记住我 [登入] [注册]