Safari 浏览器 white-space: pre 无效
CSS iOS 大约 136 字问题
代码块在Safari
浏览器被强制换行了,代码如下
code {
white-space: pre
}
解决方案
增加word-wrap: normal
code {
white-space: pre;
word-wrap: normal
}
阅读 5180 · 发布于 2019-04-11
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Linux 查看文件夹总大小阅读 2142
-
Go 中的指数符号 e阅读 3074
-
Nginx 编译安装时提示 the HTTP gzip module requires the zlib library阅读 10995
-
Prometheus+Grafana+elasticsearch_exporter 监控 Elasticsearch阅读 1557
-
Android dp,sp 与 px 转换阅读 5845
-
GoJS 给右键菜单中的按钮添加内边距阅读 1512
-
Java 中判断奇偶性的方法阅读 2066
-
Docker 部署 MySQL阅读 1371
-
OpenResty 使用 Certbot 生成 SSL 证书阅读 3030
-
Spring Boot 将 InputStream 输入流转换为 String阅读 1364