px And pt difference

Font size setting unit , Commonly used 2 Kind of :px、pt. What's the difference between the two ?

Let's get to the basics first :

  • px That is to say pixel, Pixels , It's the most basic point of displaying data on the screen ;
  • pt Namely point, It's a common unit in the printing industry , be equal to 1/72 Inch .

px Its full name is pixel, It's a point , It's not a natural unit of length , Who can name one “ spot ” How long is it ? It can be very small , It can be very big . If the point is small , Then the picture is clear , Let's call it alpha “ High resolution ”, conversely , Namely “ Low resolution ”. therefore ,“ spot ” How big is it “ change ” Of , Also known as “ Relative length ”.

pt Its full name is point, But Chinese is not called “ spot ”, Cha Jinshan Ciba can see , To be exact, it's a dedicated printing unit “ pounds ”, The size is 1/72 Inch . So it's a natural standard unit of length , Also known as “ Absolute length ”.

So there is a saying that :

  • pixel It's relative size
  • point It's absolute size

iPhone Various screen resolutions

  equipment Screen size The resolution of the (pt) Reader The resolution of the (px) After rendering PPI
iPhone 3GS 3.5 " 320x480 @1x 320x480   163
iPhone 4/4s 3.5 " 320x480 @2x 640x960   330
iPhone 5/5s/5c 4.0 " 320x568 @2x 640x1136   326
iPhone 6 4.7 " 375x667 @2x 750x1334   326
iPhone 6Plus 5.5 " 414x736 @3x 1242x2208 1080x1920 401
iPhone 6s 4.7 " 375x667 @2x 750x1334   326
iPhone 6sPlus 5.5 " 414x736 @3x 1242x2208 1080x1920 401
iPhone 7 4.7 " 375x667 @2x 750x1334   326
iPhone 7Plus 5.5 " 414x736 @3x 1242x2208 1080x1920 401

iPhone All kinds of machine sizes 、 More about screen resolution

  1. A picture to help you understand iPhone 6 Plus The screen resolution of

    A picture to help you understand iPhone 6 Plus The screen resolution of It was announced a few days ago iPhone 6 Plus The official screen is 1920 x 1080 Of , But in the Xcode In fact, we find that the screen of the simulator looks strange ...

  2. Screen size , Screen resolution , Screen density , Various units of length and width (px,sp,dp,in.pt,mm)

    Common length and width unit table name Unit abbreviation All units Introduce Screen size '' or in inch The size of the screen , It is usually represented by the length of the diagonal of the screen . The unit is inch Screen resolution px pixels The number of pixels on the entire screen , Generally use the pixels of the screen ...

  3. iPhone Screen size 、 Resolution and adaptation

    turn :http://blog.csdn.net/phunxm/article/details/42174937 Catalog (?)[+]   1.iPhone Size specifications equipment iPhone wide Width high H ...

  4. 【 turn 】iPhone Screen size 、 Resolution and adaptation

    Original website :http://blog.csdn.net/phunxm/article/details/42174937 1.iPhone Size specifications equipment iPhone wide Width high Height Diagonally ...

  5. iPhone The screen size of the phone 、 Resolution and adaptation

    1.iPhone Size specifications equipment iPhone wide Width high Height Diagonals Diagonal Logical resolution (point) Scale Factor Device resolution (pixel) PPI 3GS ...

  6. 【 Reprint 】iPhone Screen size 、 Resolution and adaptation

    iPhone Screen size . Resolution and adaptation Reprint http://m.blog.csdn.net/article/details?id=42174937 1.iPhone Size specifications iPhone The width of the whole machine Width ...

  7. iosiPhone Screen size 、 Resolution and adaptation

    iosiPhone Screen size . Resolution and adaptation     1.iPhone Size specifications equipment iPhone wide Width high Height Diagonals Diagonal Logical resolution (point) Scale Fac ...

  8. iOS Screen size and resolution

    1. So far , Mainstream iOS There are several types of device screens : ---------------  iPhone  ---------- --------  iPad ------------ 2.iOS The device screen is divided into ...

  9. iOS Screen size and resolution

    iOS Members of the platform family mainly include iPhone.iPod Touch and iPad, But all kinds of devices have different resolutions , The main existing sizes are : iOS There are many sizes of equipment , Besides , There are also a variety of screen resolutions , The summary is shown in the table below : Its ...

Random recommendation

  1. apicloud analysis

    function jiexi(id) { var getTabBarActivityUrl = '/QuestionReport?filter='; var urlParam = {}; ajaxRe ...

  2. VC Run only one instance of the program

    There are many ways , The following is just to provide a more useful One . Single document program In procedure App Class InitInstance Add the following code to BOOL CDDZApp::InitInstance() { /* Run only one instance */ / ...

  3. say something jsonp

    What is? jsonp jsonp At best, it's a kind of " Method ". It allows the page to get information from other fields .   The first thing to know is the homology strategy , stay javascript Use in http request (ajax) Will be subject to the same ...

  4. turn !sqlServer2000 Table join query

    When querying multiple tables , We often use “ Link query ”. Connection is the main feature of relational database model , It is also a symbol that distinguishes it from other types of database management systems . What is connection query ? Concept : According to the relationship between the columns of two or more tables , Look up data from these tables ...

  5. Delete word The blank line after the table in the document

    The solution is : Method 1: Make the best of . The next margin value is reduced , So that the page expands to accommodate the next paragraph line .   Method 2: The cursor is in front of the last paragraph line symbol , Right click → The paragraph → Indent and space → spacing → row spacing → Fixed value → Set the value →1 pounds → determine .

  6. cf437B The Child and Set

    B. The Child and Set time limit per test 1 second memory limit per test 256 megabytes input standard ...

  7. Javascript An array of operations for [ turn ]

    1.shift: Delete the first item of the original array , And returns the value of the deleted element : Returns if the array is empty undefined var a = [1,2,3,4,5]; var b = a.shift(); // result a:[2,3,4 ...

  8. C# 6 And .NET Core 1.0 Advanced programming - 41 ASP.NET MVC( On )

    translation , Personal originality , Reprint please indicate the source (C# 6 And .NET Core 1.0 Advanced programming - 41 ASP.NET MVC( On )), Wrong places are welcome to point out and exchange . Chapter from <Professional C# ...

  9. Bare pager (Bare Metal) install CoreOS

    This article takes 1235.9.0-stable For example , stay WMWare Installation in . 1. Get installation resources https://coreos.com/releases/  adopt "Browse Images&quo ...

  10. Instant messaging system Openfire Analysis five : session management

    What is conversation ? A Dial B The phone Connect the phone A asked :Are you OK? B reply :I have a bug! A Hung up the phone The whole process is conversation . conversation (Session) It's an uninterrupted request between the client and the server ...