页首Html代码

摘要: JavaScript 调用方式:__________________________________________________<script type="text/javascript" src="FCKeditor/fckeditor.js"></script> <textarea name="content" cols="80" rows="4"></textarea><script type="text/javascri 阅读全文
posted @ 2012-05-10 17:16 binsite 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 首先是GridView 中的文本不自动换行,隐藏超出宽度部分,可以使用以下函数: return (str.Length > num) ? str.Substring(0, num) + "..." : str; int num 是你要截取的字符串的长度,然后把这个函数写在行绑定数据的事件中即可。 要是要使GridView里的内容自动换行的话,使用以下办法 在页面加入属性:style =" word-break :break-all ; word-wrap:break-word " (table或div 等的属性里) 或设置<asp:Templ 阅读全文
posted @ 2012-05-10 13:47 binsite 阅读(675) 评论(0) 推荐(0) 编辑

页脚Html代码