简体   繁体   English

Macbook Pro视网膜开发

[英]Macbook pro retina development

Hi I am developing a website click here 嗨,我正在开发一个网站, 请点击这里
and my client sent me that screenshot below. 客户将下面的屏幕截图发送给了我。 This is a macbook retina pro. 这是Macbook Retina Pro。 I 've no idea why but it seems like it's got a resolution about 1024x640 and the browser viewport is about 500px(!). 我不知道为什么,但似乎它的分辨率约为1024x640,浏览器的视口约为500px(!)。 So I have two questions: 1.When you take your macbook pro retina out of the box what is the default resolution and pixel density? 因此,我有两个问题:1.当您将Macbook Pro Retina开箱即用时,默认分辨率和像素密度是多少?
2.How can you emulate a retina display on a non mac? 2.如何在非Mac上模拟视网膜显示? I've tried the new emulation options in chrome but every time I've set device pixel ratio 2 and played with resolution I never got any usable output.Using VM is pointless due to low resolution. 我尝试了chrome中的新仿真选项,但是每次设置设备像素比率2并以分辨率播放时,都无法获得任何可用的输出。由于分辨率低,使用VM毫无意义。

EDIT: one more thing I've noticed. 编辑:我注意到的另一件事。 If I reproduce that same resolution on my browser everything looks more "zoomed out" (bigger) the on the image attached. 如果在浏览器上重现相同的分辨率,则所有图像看起来都将“放大”(更大)。 Is it possible that the bottom toolbar scales the whole web site down or it's the pixel density related? 底部的工具栏是否有可能按比例缩小整个网站,或者与像素密度有关?

在此处输入图片说明

  1. Default resolution on the MacBook Pro with Retina Display (15") is 1440x900 at 2:1 pixel ratio (using the 2880x1800 screen). However, there are a lot of scaled modes. 具有Retina显示屏(15“)的MacBook Pro的默认分辨率为2:1像素比(使用2880x1800屏幕)时为1440x900。但是,有很多缩放模式。

  2. Although I don't know of a good way to simulate a retina display on a non-Macintosh desktop or laptop, Safari browsing on Retina MacBook Pro is similar/identical to Safari on iPad/iPhone in terms of how it handles the display resolution issues. 尽管我不知道在非Macintosh台式机或笔记本电脑上模拟视网膜显示的好方法,但就如何处理显示分辨率问题而言,Retina MacBook Pro上的Safari浏览与iPad / iPhone上的Safari类似/相同。 。 If you have a Retina iPad that's probably a better simulator, but you won't have access to developer tools since those are only available when paired with a Mac. 如果您拥有的视网膜iPad可能是更好的模拟器,但是您将无法使用开发人员工具,因为这些工具仅在与Mac配对时才可用。

If you have access to a non-Retina Mac, you can also try using the HiDPI modes (see the posting about enabling HiDPI modes ) to give you access to how the web server would see a Mac if the display were retina. 如果您可以访问非Retina Mac,则还可以尝试使用HiDPI模式(请参阅有关启用HiDPI模式的文章 ),以使您可以访问在显示为视网膜的情况下Web服务器如何查看Mac。

I think this is the wrong approach, you don't need to emulate a Retina display, the only thing you need to worry about is that your website looks good also on 1440x900 and that your assets have an option to be served for Retina displays, HiDPI as @gaige mentioned. 我认为这是错误的方法,您无需模仿Retina显示器,您唯一需要担心的就是您的网站在1440x900上的效果也不错,并且您的资产可以选择用于Retina显示器,如@gaige所述的HiDPI。

And you can load those like this http://paulstamatiou.com/responsive-retina-blog-development-part-2/ 您可以加载像这样的http://paulstamatiou.com/sensitive-retina-blog-development-part-2/

Other than that, it's just a matter of using best practices, and everything should work itself out. 除此之外,这只是使用最佳实践的问题,一切都应该自行解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 程序员将在Macbook Pro Retina中获得什么分辨率 - What resolution programmers will get in Macbook Pro Retina 媒体查询:仅定位视网膜Macbook Pro - Media Queries: Target retina macbook pro only CSS在Macbook Pro视网膜中不起作用 - css doesn't work in macbook pro retina MacBook Pro Retina无法通过Ruboto安装英特尔HAXM - MacBook Pro Retina cannot install Intel HAXM via Ruboto 带有外接显示器的Macbook Pro Retina上的VS Code字体渲染 - VS Code Font Rendering on macbook pro retina with external monitor 如何在13英寸Macbook Pro上使用模拟器测试iPad视网膜应用程序? - How to test iPad retina app with simulator on 13 inch Macbook Pro? 从具有视网膜的Macbook Pro上的IplImage *转换后,我的QPixmap分为3部分 - My QPixmap splits into 3 parts after conversion from IplImage* on Macbook pro with retina 如何以编程方式确定 OS X 上 Retina MacBook Pro 屏幕的原始像素分辨率? - How to programmatically determine native pixel resolution of Retina MacBook Pro screen on OS X? HTC在Mac OS上进行开发(Macbook Pro 15“于2017年底与Radeon pro 555结合使用) - HTC vive development on Mac OS (Macbook Pro 15" late 2017 with Radeon pro 555) 简单的代码,以获得托管应用程序的Mac类型? 即“MacBook Pro(Retina,15英寸,2013年末)” - Simple code to get type of Mac that's hosting app? i.e. “MacBook Pro (Retina, 15-inch, Late 2013)”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM