收集的DedeCMS一些使用经验_php技巧

WBOY
Release: 2016-05-17 09:40:14
Original
895 people have browsed it

以下的都是转过来的,只是参补其官方的不足,其实它历害的功能没谈到,呵呵,保留一下先

1、在文章列表中,有的标题被截断了,怎么样能用点结尾?
  用什么样的代码可以让鼠标在上面的时候可以显示完整的文件名?

{dede:arclist row=16 orderby=pubdate col=1 typeid=3}

  • · [field:title function="cn_substr('@me',30)" /]

  • {/dede:arclist}

    2、怎么样在文章名前面显示所属的文章栏目?

        {dede:arclist row=10 orderby=pubdate}
    ·[field:typelink/] [field:textlink/]

    {/dede:arclist}


    3、用CSS来截断过长的标题并加省略号

    建议大家用这个来设置。
    感觉生成速度根标签的多少有关系。所以能用css不用解析的尽量用css吧~


    overflow:hidden; text-overflow:ellipsis;white-space:nowrap;width:100%;width:100%;
    容器一定要设置一个宽度。不然不能实现效果哦。
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!