Home > Backend Development > PHP Tutorial > Some collected experience using DedeCMS_PHP tutorial

Some collected experience using DedeCMS_PHP tutorial

WBOY
Release: 2016-07-21 15:56:09
Original
848 people have browsed it

The following are all transferred over, just to make up for its official shortcomings. In fact, its functions have not been mentioned. Haha, keep it first

1. In the article list, some titles have been truncated. , how can I use a dot at the end?
What kind of code can be used to display the complete file name when the mouse is on it?

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

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

  • {/dede:arclist}

    2. How to display the article column in front of the article name?

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

    {/dede:arclist}


    3. Use CSS to truncate overly long titles and add ellipsis

    It is recommended that you use this setting.
    I feel that the generation speed of the root tag has something to do with it. So if you can use css without parsing, try to use css~


    overflow:hidden; text-overflow:ellipsis;white-space:nowrap;width:100%;width:100%;
    The container must have a width set. Otherwise, the effect cannot be achieved.

    www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318141.htmlTechArticleThe following are all transferred over, just to make up for its official shortcomings. In fact, its actual functions are not discussed. Yes, haha, keep it first. 1. In the article list, some titles are truncated. How can I...
    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