Comments (5)
谢谢反馈,不过请参见:yihui/hugo-ivy#6 真是巧了,一周内有两个人分别跟我提起这个问题。
对窄长图片来说,我想不出用 display: block
加 margin: auto
居中图片和用我的 JS 办法居中有什么区别,你的窄长的意思是指高度超高吗?对超过父元素宽度的超宽图片也许有区别(尽管我也怀疑)。给个例子看看?
from yihui.org.
哈,太巧了。😄
这个图片就可以 测试出来效果。
我是在手机上发现这个问题的,在较小宽度显示时,图片居中后左右宽度不一致的问题会比较明显。
from yihui.org.
https://jsfiddle.net/sg45k68p/ 有何区别?
from yihui.org.
实在抱歉,找到了原因,代码没有问题。
是因为我在 P 开头增加了   
作为段落缩进, 转义字符在控制台难以看出来区别。
https://jsfiddle.net/zsdycs/dkf0szcu/
(真相大白)
from yihui.org.
哦,明白了。看样子你已经解决了:zsdycs/lipk.org-hugo@49072d4
我个人不太倾向于同时使用首行缩进和段落间空行。不过这是你自己的审美偏好,自己觉得舒服就行。
from yihui.org.
Related Issues (20)
- 语言代码错了 HOT 1
- 请问menu.main要写在哪里才能生效? HOT 1
- 大哥,链接老旧,404!404 啦! HOT 2
- 关于Knit qmd到html的error HOT 1
- 菜单有多余的左外边距 HOT 3
- 关于博客引用字体的问题
- 中文标点导致删除线 `~~` 失效 HOT 1
- 「为什么」和「原因」用其中一个就够了 HOT 1
- 繁体字怪怪的 HOT 9
- Polyglossia in R Quarto or Markdown HOT 1
- 华为手机鸿蒙系统下,代码块里代码字体是衬线字体,但是电脑上是无衬线的 Consolas 字体 HOT 5
- Site (partially) down HOT 2
- cn/2021/08/tough-cook/ HOT 2
- cn/2022/07/father-day-gift/ HOT 2
- cn/2022/05/empty-sky/ HOT 2
- cn/2022/06/useless-prosper/ HOT 1
- cn/2022/06/rocky-mountain/ HOT 1
- cn/2021/09/detaching/ HOT 1
- cn/2018/08/poor-charlies-almanack/ HOT 2
- Large whitespace after quotes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yihui.org.