From 9beffba12718f62c64c7183949627de05fab8da9 Mon Sep 17 00:00:00 2001 From: augushong Date: Fri, 28 Jan 2022 20:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=AA=E7=89=88=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BD=B4;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/pc/timeline.html | 51 +++++++++++++++++++++++++++++++++++++++++ public/cdn/layui-ul.css | 16 +++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 demo/pc/timeline.html diff --git a/demo/pc/timeline.html b/demo/pc/timeline.html new file mode 100644 index 0000000..63342e8 --- /dev/null +++ b/demo/pc/timeline.html @@ -0,0 +1,51 @@ +
+ 横版时间线 +
+
这个样式依赖原版layui
+
+
    +
  • + +
    +

    8月18日

    +

    + layui 2.0 的一切准备工作似乎都已到位。发布之弦,一触即发。 +
    不枉近百个日日夜夜与之为伴。因小而大,因弱而强。 +
    无论它能走多远,抑或如何支撑?至少我曾倾注全心,无怨无悔 +

    +
    +
  • +
  • + +
    +

    8月16日

    +

    杜甫的思想核心是儒家的仁政思想,他有“致君尧舜上,再使风俗淳”的宏伟抱负。个人最爱的名篇有:

    +
      +
    • 《登高》
    • +
    • 《茅屋为秋风所破歌》
    • +
    +
    +
  • +
  • + +
    +

    8月15日

    +

    + 中国人民抗日战争胜利72周年 +
    常常在想,尽管对这个国家有这样那样的抱怨,但我们的确生在了最好的时代 +
    铭记、感恩 +
    所有为中华民族浴血奋战的英雄将士 +
    永垂不朽 +

    +
    +
  • +
  • + +
    +
    过去
    +
    +
  • +
+
+
+
\ No newline at end of file diff --git a/public/cdn/layui-ul.css b/public/cdn/layui-ul.css index 09fa27f..b6f1eaf 100644 --- a/public/cdn/layui-ul.css +++ b/public/cdn/layui-ul.css @@ -1478,4 +1478,20 @@ body .layui-quote-gray { .ul-site-item-desc { font-size: 12px; color : #666; +} + +.ul-timeline-rowstyle { + display : flex; + flex-wrap : nowrap; + overflow-x: auto; + width : 100%; +} + +.ul-timeline-rowstyle .layui-timeline-item { + margin-right: 15px; + min-width : 300px; +} + +.ul-timeline-rowstyle .layui-timeline-item:last-child::before { + display: block; } \ No newline at end of file