包含我收集,整理的给类资料
强制不换行
CSS代码
- div{
- whitewhite-space:nowrap;
- }
自动换行
CSS代码
- div{
- word-wrap: break-word;
- word-break: normal;
- }
强制英文单词断行
CSS代码
- div{
- word-break:break-all;
- }
Time 2010/09/08 | Posted in 技术资料 | 0 Comments | 56 Hits
有时候文字太长时会影响页面的布局div标签,需要把后面的隐藏掉,只显示省略号(...),对于div标签比较容易
如:
.content
{
width:100px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
<div class="content">隐藏过长的文字</div>
而对于table和GridView却不能实现div标签,其实GridView最终也是解析为table在页面显示,所以用GridView为例。
1、定义如下CSS样式
.tableCSS
{
table-layout: fixed;
}
.content
{
width:100%;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
2、为GridView设置样式
<asp:GridView CssClass="tableCSS" 必需要为整个table或GridView添加样式 且table-layout:的值必需为fixed
对于要隐藏的列添加样式,如
<asp:BoundField DataField="MainTitle" HeaderText="内容">
<temStyle Width="42%" CssClass="content" />
Time 2010/09/02 | Posted in 技术资料 | 0 Comments | 76 Hits
CSS中相应text位置img添加
max-width: 620px;
max-height: 10px;
border:0;
如以下形式:
.textbox-contents{
}
.textbox-contents img{
max-width: 620px;
max-height: 10px;
border:0;
}
引用
max-width: 620px;
max-height: 10px;
border:0;
如以下形式:
引用
.textbox-contents{
}
.textbox-contents img{
max-width: 620px;
max-height: 10px;
border:0;
}
Time 2010/08/30 | Posted in 技术资料 | 0 Comments | 22 Hits
开机按F2进入BIOS,在configuration下的Graphic Device改为Discrete Graphic .否则只会默认使用集成显卡。
Time 2010/08/17 | Posted in 技术资料 | 0 Comments | 34 Hits
原帖子地址:http://www.phpwind.net/read-htm-tid-863792.html
实现此种功能

此文内容适合于PW 8 系列。
修改template/wind/read.htm
修改前注意备份
找到
在前面添加
实现此种功能
此文内容适合于PW 8 系列。
修改template/wind/read.htm
修改前注意备份
找到
<a href="javascript:;" onclick="formclick(document.delatc,'masingle.php?action=delatc',2);return false;" class="mr5">删除选定</a>
在前面添加
Time 2010/07/30 | Posted in 技术资料 | 0 Comments | 72 Hits





