-- 作者:wanpixiaoxin
-- 发布时间:6/16/2005 12:54:00 PM
-- 急求:关于在XHTML使用CSS出现乱码问题!
小弟之前没有写过XHTML,这是第一次写,由于对它的不够了解,基本上代码是按HTML写的...但是按从网络上查的说明,代码上应该没有太大问题。 现在的问题是:页面写入CSS样式,当文字调用后,使用手机设备访问时,就会变成乱码(通常变成□); 如果不使用CSS,页面一切正常,使用手机设备访问时,没有问题。 但现在必须要使用CSS来控制样式,或者还有其他方法吗?来控制表格底色和文字大小颜色? 附代码如下: <?xml version="1.0" encoding="utf-8" ?> <?xml:stylesheet type="text/css" href="style.css"?> <!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> <title>Music</title> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Cache-Control" content="no-cache"/> <meta http-equiv="Expires" content="0"/> <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <style type="text/css"> .doc1 { font-size: 12px; color: #FFFFFF; } </style> </head> <body topmargin="0" bgcolor="#F5EFC8"> <div align="center"> <table border="0" width="98%" id="table1" cellspacing="0" cellpadding="0" style="font-size: 9pt" bgcolor="#FFFFFF"> <tr> <td height="22">${logo}</td> </tr> <tr> <td> <table border="0" width="100%" id="table5" cellspacing="0" cellpadding="0" style="border-style: solid; border-width: 1px" bordercolor="#7c3a00" bgcolor="#DFBA3C"> <tr> <td> <p align="center"><font color="#7C3A00"><b><span class="doc1">郑秀文:我还没死!</span></b></font></p></td> </tr> </table> </td> </tr> </table> </div> <div align="center"> <table border="0" width="98%" id="table2" cellspacing="0" cellpadding="0"> </div> <div align="center"> <table border="0" width="98%" id="table9" cellspacing="0" cellpadding="0"> <tr> <td colspan="2" bgcolor="#fedd6c"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <p align="center">${new_music_top}</p></td> </tr> <tr> <td> </td> </tr> </table> <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table12"> <tr> <td><a href="#">郑秀文:我还没死</a></td> </tr> <tr> <td><a href="#">郑秀文死讯传闻满天飞</a></td> </tr> <tr> <td><a href="#">经纪人辟谣虚惊一场</a></td> </tr> <tr> <td><a href="#">郑秀文被曝患有忧郁症</a></td> </tr> <tr> <td><a href="#">郑秀文生退意</a></td> </tr> <tr> <td><a href="#">改掉电话避世</a></td> </tr> </table> </td> </tr> </table> </div> <div align="center"> <table border="0" width="98%" id="table11" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#DFBA3C" style="border-style: solid; border-width: 1px" bordercolor="#7c3a00" > <p align="center">我有话要说</p></td> </tr> <tr> <td bgcolor="#fedd6c"> <p align="center"><input type="text" name="T1" size="20" style="background-color:#FBEFC5;border-top:#cccccc 1px solid;border-left:#cccccc 1px solid;border-right:#666666 1px solid;border-bottom:#666666 1px solid;"></p></td> </tr> <tr> <td bgcolor="#fedd6c"> <p align="center">提交 取消</p></td> </tr> </table> </div> <div align="center"> <table border="0" width="98%" id="table11" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#DFBA3C" bordercolor="#7c3a00" colspan="2" > <p align="center">精彩主题推荐</p></td> </tr> <tr> <td bgcolor="#fedd6c" width="50%"> <p align="center"><a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#"> 4</a> <a href="#">5</a> <a href="#">>></a></p></td> <td bgcolor="#fedd6c" width="50%"> <p align="center"><a href="#">下5页</a></p></td> </tr> </table> </div> <div align="center"> <table border="0" width="98%" id="table10" cellspacing="0" cellpadding="0"> <tr> <td height="18" bgcolor="#7c3a00"><a href="#"><font color="#ffffff"> 返回频道首页</font></a></td> </tr> <tr> <td height="18" bgcolor="#333333"><a href="#"><font color="#ffffff"> 返回首页</font></a></td> </tr> </table> </div> </body> </html>
|