CSS文字描边问题???
我用CSS做了个文字描边的效果,本来正常显示了,但我在表格中加了背景就不显示了,哪位高手哥哥姐姐帮帮小弟~~~
代码如下:
<style type= "text/css ">
<!--
.fonthui_bwhite {
font-size: 12px;
color: #e5e5e5;
filter: Glow(Color=#ff0000, Strength=2);
}
-->
</style>
<table width= "96% " border= "0 " cellpadding= "0 " cellspacing= "0 " class= "table_blue ">
<tr>
<td height= "27 " background= "images/s_bg.gif " class= "fonthui_bwhite "> <div class= "fonthui_bwhite "> 家居世界 </div> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
------解决方案-------------------- <!--楼主这样就可以了!.-->
<!--
.fonthui_bwhite {
font-size: 12px;
color: #e5e5e5;
filter: Glow(Color=#ff0000, Strength=2);
/*加上下面这一个属性,就ok了.*/
height:12px
}
-->
</style>
<table width= "96% " border= "0 " cellpadding= "0 " cellspacing= "0 " class= "table_blue ">
<tr>
<td height= "27 " background= "bgx.png " class= "fonthui_bwhite "> <div class= "fonthui_bwhite "> 家居世界 </div> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
------解决方案--------------------背景色同描边色一样?
------解决方案--------------------楼主请问你是什么浏览器里面测试效果!
------解决方案--------------------2楼说的对,只是应该这样改
<style type= "text/css ">
<!--
.fonthui_bwhite {
font-size: 12px;
color: #e5e5e5;
filter: Glow(Color=#ff0000, Strength=2);
height:24px;
line-height:24px;/*这样文字就居中了*/
}
-->
</style>
<table width= "96% " border= "0 " cellpadding= "0 " cellspacing= "0 " class= "table_blue ">
<tr>
<td bgcolor= "#232233 " class= "fonthui_bwhite "> <div class= "fonthui_bwhite "> 家居世界 </div> </td>
</tr>
<tr>
<td> </td>
</tr>