html - 内联列表:您可以在换行符处抑制 li:after 内容吗?
问题描述
通过这个内联列表的最小工作示例,我几乎拥有了我想要的东西:
ul {word-wrap:normal; width:540px;}
ul li {display:inline; white-space:nowrap;}
ul li:after {content:"\2000\22C4\2000";}
ul li:last-child:after {content:none;}
<ul>
<li>here's some very long list item</li>
<li>here's some very long list item</li>
<li>here's some very long list item</li>
</ul>
这不会<li>
按预期破坏跨行的内容,但是有没有办法抑制在li:after {content:"...";}
换行之前发生的显示?
解决方案
推荐阅读
- javascript - rtl 方向在 jquery simplebar 中不起作用
- c# - Nreco ConvertMedia 在天蓝色功能上非常慢
- firefox - Firefox urlbar 重写:http://server/ → http://www.server.com/?
- sql - 从 SQL Server 转换时如何在 oracle 中使用 Outer Apply
- zapier - 如何对 Zapier 代码输出中返回的数组应用重复数据删除
- c++ - lld-link错误编译铬与ffmpeg附加调用
- google-chrome - 如何在 Windows Server 2016 上的 IIS 中修复 ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY
- xml - 如何删除命名空间并将 XML 格式化为在同一个 XSL 样式表中表现出色
- outlook - Outlook 加载项:远程服务不可用时忽略 On-send 事件
- variables - Teamcity:从弹出窗口更新环境变量