Chrome 在段落上添加前导 space
Chrome adds a leading space on paragraphs
我在 OS X 上使用 Chrome 41。一个实例可以更容易地说明我的问题:http://mathieumarques.herokuapp.com/.
如果你向下滚动到 Experiences 部分,你可以看到每个段落前面都有一个前导 space,即使我强制 text-indent: 0;
。但是,我可以为 text-indent
属性.
添加一个负值
我在 Firefox 上没有这个问题。
标记中的 tabs/spaces/character 导致了它。
删除它们可以解决问题。
旧:
<div class="lead timeline-body ng-scope" ng-transclude="" ng-bind-html="item.description"><p>
Web development with Django and jQuery.
Porting of a desktop C++ application to the
Web. Realization of a single page
application, with vectorial drawing on
mouse events.
</p>
新:
<div class="lead timeline-body ng-scope" ng-transclude="" ng-bind-html="item.description"><p>Web development with Django and jQuery. Porting of a desktop C++ application to the Web. Realization of a single page application, with vectorial drawing on mouse events.</p>
我在 OS X 上使用 Chrome 41。一个实例可以更容易地说明我的问题:http://mathieumarques.herokuapp.com/.
如果你向下滚动到 Experiences 部分,你可以看到每个段落前面都有一个前导 space,即使我强制 text-indent: 0;
。但是,我可以为 text-indent
属性.
我在 Firefox 上没有这个问题。
标记中的 tabs/spaces/character 导致了它。
删除它们可以解决问题。
旧:
<div class="lead timeline-body ng-scope" ng-transclude="" ng-bind-html="item.description"><p>
Web development with Django and jQuery.
Porting of a desktop C++ application to the
Web. Realization of a single page
application, with vectorial drawing on
mouse events.
</p>
新:
<div class="lead timeline-body ng-scope" ng-transclude="" ng-bind-html="item.description"><p>Web development with Django and jQuery. Porting of a desktop C++ application to the Web. Realization of a single page application, with vectorial drawing on mouse events.</p>