babylonjudge Posted July 6, 2010 Share Posted July 6, 2010 1.今天测试了一下发现用户评论这个东西如果评论数据过长会一直输入下去而不会自动换行?这个问题怎么解决?我看了下后台的模块好像没有设置单行最大字节的选项?不知道有没有朋友测试过?2.论坛是否有第三方的搜索模块现有的搜索模块实在不好看我通过搜索:search module没有找到(如果有跟下图类似的搜索模块那就再好不过了) Link to comment Share on other sites More sharing options...
babylonjudge Posted July 6, 2010 Author Share Posted July 6, 2010 评论不换行的图如下 Link to comment Share on other sites More sharing options...
21846657 Posted July 7, 2010 Share Posted July 7, 2010 1. 除非用户键盘损坏,或恶意破坏,否则极少有用户输入连续的英文字符。解决方法:用firefox + firebug查看控制comment文字的html标签对,再加上下面的CSS: word-wrap: break-word; word-break: normal; 2. 没有这样的第三方的搜索模块。 Link to comment Share on other sites More sharing options...
babylonjudge Posted July 7, 2010 Author Share Posted July 7, 2010 OK thank you Moderator... Link to comment Share on other sites More sharing options...
babylonjudge Posted July 7, 2010 Author Share Posted July 7, 2010 这个我昨天尝试过用firebug找 但是找到的CSS是关于全局的对于CSS不熟悉 在全局的CSS后面加上这个代码没有效果 element.style { vertical-align:top; } table.std tbody tr td, table.std tfoot tr td { border-top:1px solid #BDC2C9; } table.std td, table.std th { padding:0.4em 0.5em; } 我之前以为是修改productcomment module里面的。。。 Link to comment Share on other sites More sharing options...
21846657 Posted July 7, 2010 Share Posted July 7, 2010 对应的应该是/modules/productcomments/productcomments.tpl里的一个。在其style这个属性节点里加入上面的CSS,进行控制。p.s. 备份原文件后再做修改。由于修改了tpl文件,所以需要清空smarty缓存后,再测试FO。 Link to comment Share on other sites More sharing options...
babylonjudge Posted July 7, 2010 Author Share Posted July 7, 2010 已经改成功了在table里还要加上style="table-layout:fixed;" 才可以嘿嘿 谢谢moderator Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now