新闻列表中,常用的文字超出后显示省略号...

新闻列表中,常用的文字超出后显示省略号..

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<title>文本超出后显示省略号...</title>
<style type="text/css">
    ul li {
        list-style-type: none;
    }
 
    a {
        color: #000000;
        text-decoration: none;
    }
 
    a:hover {
        color: #999999;
    }
 
    li {
        width: 200px;
        white-space: nowrap;
        /*强制在同一行内显示所有文本,合并文本间的多余空白,直到文本结束或者遭遇br对象。 */
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        -webkit-text-overflow: ellipsis;
        -moz-text-overflow: ellipsis;
        overflow: hidden;
    }
 
    /* firefox only wtf is? pls let me know*/
    li:not(li) {
        clear: both;
    }
 
    li:not(li) a {
        max-width: 175px;
        float: left;
    }
 
    li:not(li):after {
        content: "...";
        float: left;
        width: 25px;
        padding-left: 5px;
        color: #df3a0e;
    }
</style>
<title>文本超出后显示省略号...</title>
<style type="text/css">
    ul li {
        list-style-type: none;
    }
 
    a {
        color: #000000;
        text-decoration: none;
    }
 
    a:hover {
        color: #999999;
    }
 
    li {
        width: 200px;
        white-space: nowrap;
        /*强制在同一行内显示所有文本,合并文本间的多余空白,直到文本结束或者遭遇br对象。 */
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        -webkit-text-overflow: ellipsis;
        -moz-text-overflow: ellipsis;
        overflow: hidden;
    }
 
    /* firefox only wtf is? pls let me know*/
    li:not(li) {
        clear: both;
    }
 
    li:not(li) a {
        max-width: 175px;
        float: left;
    }
 
    li:not(li):after {
        content: "...";
        float: left;
        width: 25px;
        padding-left: 5px;
        color: #df3a0e;
    }
</style>

原文

posted @   Gitwow  阅读(482)  评论(0编辑  收藏  举报

点击右上角即可分享
微信分享提示