Code Monkey home page Code Monkey logo

Comments (5)

yihui avatar yihui commented on August 19, 2024

谢谢反馈,不过请参见:yihui/hugo-ivy#6 真是巧了,一周内有两个人分别跟我提起这个问题。

对窄长图片来说,我想不出用 display: blockmargin: auto 居中图片和用我的 JS 办法居中有什么区别,你的窄长的意思是指高度超高吗?对超过父元素宽度的超宽图片也许有区别(尽管我也怀疑)。给个例子看看?

from yihui.org.

zsdycs avatar zsdycs commented on August 19, 2024

哈,太巧了。😄

这个图片就可以 测试出来效果。

我是在手机上发现这个问题的,在较小宽度显示时,图片居中后左右宽度不一致的问题会比较明显。

from yihui.org.

yihui avatar yihui commented on August 19, 2024

https://jsfiddle.net/sg45k68p/ 有何区别?

from yihui.org.

zsdycs avatar zsdycs commented on August 19, 2024

实在抱歉,找到了原因,代码没有问题。

是因为我在 P 开头增加了    作为段落缩进, 转义字符在控制台难以看出来区别。

https://jsfiddle.net/zsdycs/dkf0szcu/

(真相大白)

from yihui.org.

yihui avatar yihui commented on August 19, 2024

哦,明白了。看样子你已经解决了:zsdycs/lipk.org-hugo@49072d4

我个人不太倾向于同时使用首行缩进和段落间空行。不过这是你自己的审美偏好,自己觉得舒服就行。

from yihui.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.