css处理过长文字自动隐藏(兼容IE和firefox)
来源:互联网 发布:中箭组mod整合捏脸数据 编辑:程序博客网 时间:2024/05/21 17:03
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="channel">
<xsl:variable name="basePath" select="basePath"/>
<xsl:variable name="listSize" select="params/listSize"/>
<xsl:variable name="import_user_item" select="messages/import_user_item"/>
<div class="widget-content">
<table width="90%" border="0" cellpadding="1" cellspacing="2" style="table-layout:fixed;">
<tr>
<td width="76%"></td>
<td width="24%"></td>
</tr>
<xsl:for-each select="item">
<xsl:sort select="subject" /> <!--根据标题排序 -->
<tr>
<td align="left" style="overflow: hidden; white-space: nowrap; padding: 0pt 0pt 0pt 0px;">
<img>
<xsl:attribute name="src"><xsl:value-of select="$basePath" />/images/desk/img/lit_tub.jpg</xsl:attribute>
</img>
<xsl:value-of select="subject" />
</td>
<td align="right">
<xsl:value-of select="substring-before(createAt,' ') "/>
</td>
</tr>
</xsl:for-each>
</table>
<xsl:if test="$listSize > 0">
<h3 align="right">
<a target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="$basePath" />/news.do?method=toLoadList
</xsl:attribute>
<xsl:value-of select="messages/more" />
</a>
</h3>
</xsl:if>
<xsl:if test="$listSize = 0">
0<xsl:value-of select="$import_user_item" />
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet>
文中用红色注明的为解决方案
另外得控制住每列的宽度,用具体像素或者百分比都OK
弄了好久,终于解决了。。。
- css处理过长文字自动隐藏(兼容IE和firefox)
- CSS实现文字自动换行(兼容IE和火狐)
- CSS实现文字自动换行(兼容Firefox)
- CSS实现文字自动换行(兼容Firefox)
- CSS两列自适应高度DIV(高度自动增加)兼容ie和firefox
- select option隐藏(兼容IE,firefox)
- css兼容IE和FireFox(FF)
- CSS对长度过长的文字进行隐藏处理
- CSS实现图片超过限定尺寸自动缩放兼容IE和Firefox
- 兼容 IE,Firefox 的图片自动缩放 CSS
- IE 和 Firefox 都兼容的文字滚动效果
- 兼容IE和Firefox浏览器状态栏隐藏页面链接地址
- CSS兼容IE/Firefox要点
- CSS兼容IE/Firefox要点
- CSS兼容IE/Firefox要点
- CSS兼容IE/Firefox要点
- CSS兼容IE/Firefox要点
- CSS兼容IE/Firefox要点
- linux下编译php5.3 apache2.3
- Android提高
- 优秀程序员的10种特质
- openmeeting中增大内存的方法
- drop tablespace ORA-01548: active rollback segment '_SYSSMU6$' found, terminate dropping
- css处理过长文字自动隐藏(兼容IE和firefox)
- MX25上SD卡的插拨检测机制
- Discuz 模板使用方法
- 各种排序算法JAVA实现
- android菜鸟测试之Aj_02的Android 中自定义View的应用,在main.xml中嵌入自己写的view
- ubuntu中给alt+F2添加$PATH变量
- RichView 12.04 破解版
- 音视频技术总结
- 《搜搜月历》:搜搜的马斯洛分析