![]() |
1
4
实际上 是 这类事情的一些标准公式。
If your image is 100 pixels wide, you divide by the golden ratio until you get something that's not WAY to big. So golden ratio numbers for 100 pixels are 62, 38, 24, 15, 9, 6, 4, 3, 2, 1. In ems you can use fractional widths, so you wind up with 14.5, 9, 5.6 etc. em units are a function of the width of your "m" in the font, so in CSS they can change throughout the page. The "measure" is the width of line of text. You want your measure to be less than 2 to 2.5 alphabets. (You measure an alphabet by typing the abcdefg... 两次。 Colin Wheildon小册子/书 沟通或只是做出漂亮的形状 has some excellent advice for laying out typography and images. It's largely oriented toward print, but most of the same principles still apply. |
![]() |
2
1
您是否考虑过使用CSS框架,例如:
my favourite is definitly blueprint, its not too bloated like YAML or YUI and gives you a perfect start for a new project. as far as i know it adds an 1.5em padding to boxes and such things. furthermore its easy adaptable. 看一看: |
![]() |
3
0
It's hard to give you a general answer because the general look of the page influences this choice. How much text density? How much white space? How many columns? How many images in one page? 等。 I think you should experiment yourself and you will quickly find your own typical padding size or range which you can start with and tinker on a per project basis. Just have a look at Jakob Nielsen's web site. I don't care what his caliber is, you don't want to get aesthetics guidance from him. Of course a lot of his usability advice is valuable but take it all with a grain of salt. |
|
Jamie · 在CSS链接的文件名中添加Jinja占位符 4 月前 |
![]() |
Mass · 如何在Tailwind CSS v4中创建配置 4 月前 |
![]() |
magenta placenta · 将css变量合并为一个变量 4 月前 |
![]() |
ptownbro · 重叠分区标签,同时保持以下所有分区和内容就位 4 月前 |
![]() |
john Rizzo · 按钮背景颜色、悬停和活动状态存在问题 5 月前 |