css firefox字体变大解决方法 - TOMMYHU - 专注互联网开发及运营技术,提供相关资料及软件下载,奇趣网络时事评论!
Oct 19

css firefox字体变大解决方法 不指定

tommyhu , 15:19 , 大前端 » CSS3 , Comments(0) , Trackbacks(0) , Reads(9848) , Via Original Large | Medium | Small

body{font:12px #000000; margin:0; padding:0;}
*{font-family: 宋体 !important}
*{font-size: 9pt !important}

即加上HACK语句

*{font-family: 宋体 !important}
*{font-size: 9pt !important}

Highslide JS
全部实例代码如下(IE5,6,7,8,FIREFOX3.5.3测试通过)

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ebook酒店预订</title>
<style type="text/css">
body{font:12px #000000; margin:0; padding:0;}
*{font-family: 宋体 !important}
*{font-size: 9pt !important}
#main{margin:0 auto; width:900px;height:600px;background:#008800;}
.top{position:relative;margin:0 auto; width:900px;height:80px;line-height:80px;background:#008800;overflow:hidden;}
.addfov{position:absolute;top:0;right:0;padding-top:0;width:100px; height:30px;background:white;line-height:30px;text-align:center;}
#left{float:left;margin-top:5px;width:300px;height:500px;background:black;overflow:hidden;}
#right{float:right;margin-top:5px;width:598px;height:498px;background:white;border:1px dashed gray;overflow:hidden;}
.link{margin:0 auto; margin-top:2px;width:898px;height:50px;line-height:50px;background:blue;border:1px dashed gray;overflow:hidden;}
.bottom{margin:0 auto; margin-top:2px; width:898px;height:100px;line-height:100px;background:yellow;border:1px dashed red;overflow:hidden;}
</style>
</head>
<body>
<div id="main">

<div class="top">top
<div class="addfov">加入收藏</div>
</div>

<div id="left">
<div class="l1">l1</div>
<div class="l2">l2</div>
</div>

<div id="right">
<div class="r1" style="float:right;width:598px;height:250px;background:#CC0066;">r1</div>
<div class="r2" style="float:right;width:598px;height:250px;background:#CC0077;">r2</div>
</div>


<div class="link">友情链接link</div>
<div class="bottom">bottom</div>

</div>
</body>
</html>


▲返回顶部
Last modified by tommyhu on2009/10/19 15:20

Add a comment

Nickname

emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot