Jump to content

【已解决】评论太长不换行


babylonjudge

Recommended Posts

1.今天测试了一下
发现用户评论这个东西
如果评论数据过长
会一直输入下去
而不会自动换行?
这个问题怎么解决?
我看了下后台的模块
好像没有设置单行最大字节的选项?
不知道有没有朋友测试过?


2.论坛是否有第三方的搜索模块
现有的搜索模块实在不好看
我通过搜索:search module
没有找到
(如果有跟下图类似的搜索模块
那就再好不过了)

26468_NPZVE1bE8qyLUEasOBJh_t

Link to comment
Share on other sites

1. 除非用户键盘损坏,或恶意破坏,否则极少有用户输入连续的英文字符。解决方法:用firefox + firebug查看控制comment文字的html标签对,再加上下面的CSS:

word-wrap: break-word;
word-break: normal;




2. 没有这样的第三方的搜索模块。

Link to comment
Share on other sites

这个我昨天尝试过用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

对应的应该是/modules/productcomments/productcomments.tpl里的一个。在其style这个属性节点里加入上面的CSS,进行控制。

p.s. 备份原文件后再做修改。由于修改了tpl文件,所以需要清空smarty缓存后,再测试FO。

26490_ZjVvLVhvGasSySmD3EhI_t

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...