Comments (10)
谢谢涛哥,也谢谢涛哥在知乎上的发文。
from flutter.cn.
谢谢涛哥。
from flutter.cn.
我检查了下 debug.flutter.cn 的展示,发现涉及到列表的部分中,译文和原文是同时展示的,并未对原文自动折叠,效果类似下方这样:
我翻译的时候是采用下方这种形式分列中英文内容的,看上去似乎有些问题,正确的方式应该是?看上去我应该对这部分内容修改一下,以使译文正常展示(原文默认折叠):
* 原文
* 原文
* 中文
* 中文
from flutter.cn.
你应该对代码进行单独排版,比如:
* english
中文
`some code`
而不是
* english
`some code`
中文
`some code`
如果仍然有问题,请把出问题的行号在这里引用一下。
from flutter.cn.
@asnowwolf 你的意思是列表中每项对应的译文应该在其下方(代码上方)进行缩进排布么?且不再需要单独 *
用于指明其是列表中的一项?以及中英文之间我理解应该加上一行空行?
我原先的排版方式
这些示例包含如下假设:
* The HTML document starts with `<!DOCTYPE html>`, and the CSS box model
for all HTML elements is set to
[`border-box`](https://css-tricks.com/box-sizing/),
for consistency with the Flutter model.
```css
{
box-sizing: border-box;
}
```
* HTML 文件以 `<!DOCTYPE html>` 开头,且为了与 Flutter 模型保持一致,所有 HTML 元素的 CSS 盒模型被设置为 [`border-box`](https://css-tricks.com/box-sizing/)。
```css
{
box-sizing: border-box;
}
```
按照理解我应该改为:
这些示例包含如下假设:
* The HTML document starts with `<!DOCTYPE html>`, and the CSS box model
for all HTML elements is set to
[`border-box`](https://css-tricks.com/box-sizing/),
for consistency with the Flutter model.
HTML 文件以 `<!DOCTYPE html>` 开头,且为了与 Flutter 模型保持一致,所有 HTML 元素的 CSS 盒模型被设置为 [`border-box`](https://css-tricks.com/box-sizing/)。
```css
{
box-sizing: border-box;
}
```
from flutter.cn.
没错。
不过在 ```css 之前建议加一个空行,这样会更明确。反正它也会渲染成块元素,所以有没有空行不影响渲染,但是在代码层面的感受会更直观一些。
from flutter.cn.
原理上,它会单独渲染 li 下的内容,变成多个块元素。把它们看做一篇独立的子文档即可。
from flutter.cn.
@asnowwolf 多谢解答。我刚准备提 PR 修改这个地方发现程路已经改过了,谢谢大家。
from flutter.cn.
谢谢雪狼兄在微信上的解答,这里我注意到代码块儿里上下是没有变动的,所以我在想这里正确的表示是否应该是:
* The HTML document starts with `<!DOCTYPE html>`, and the CSS box model
for all HTML elements is set to
[`border-box`](https://css-tricks.com/box-sizing/),
for consistency with the Flutter model.
HTML 文件以 `<!DOCTYPE html>` 开头,且为了与 Flutter 模型保持一致,所有 HTML 元素的 CSS 盒模型被设置为 [`border-box`](https://css-tricks.com/box-sizing/)。
```css
{
box-sizing: border-box;
}
from flutter.cn.
没错,就是这样写
from flutter.cn.
Related Issues (20)
- [页面问题] https://flutter.cn/docs/cookbook/networking/fetch-data#why-is-fetchalbum-called-in-initstate
- [Mirror issue] 使用 https://storage.flutter-io.cn/dart-archive/ **镜像的问题 HOT 2
- [Mirror issue] 使用 https://dartpad.cn/inject_embed.dart.js **镜像的问题 HOT 1
- [Mirror issue] 下载 Dart SDK 时出现重定向次数过多 HOT 1
- [网站迁移] flutter.cn/docs -> docs.flutter.cn
- [Mirror issue] 使用 Flutter **镜像的问题 HOT 1
- [Mirror issue] 使用 Flutter **镜像的问题 https://pub.flutter-io.cn/api/packages/path_provider HOT 6
- [Mirror issue] pub镜像没有同步package最新版本 HOT 6
- [Mirror issue] dart.dev的package的publisher在搜索页都变成了dart.cn HOT 2
- [页面问题] '深入理解 Function
- [页面问题] 'Start building Flutter native desktop apps on macOS' HOT 1
- [页面问题] 'Codelabs' HOT 1
- [页面问题] '在屏幕上添加一个 drawer' HOT 1
- [Mirror issue] 使用 https://dartpad.cn/ **镜像的问题 HOT 1
- Placeholder order error in generated Dart file for i18n when using "price" as first parameter HOT 1
- [Mirror issue] 使用 https://dartpad.cn/ 镜像的问题 HOT 3
- [Mirror issue] 使用 Flutter **镜像的问题 HOT 1
- [Mirror issue] 使用 Flutter **镜像的问题 HOT 1
- 侧边下拉选项都点不开。 HOT 2
- 翻译工具有问题 HOT 2
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 flutter.cn.