René's URL Explorer Experiment


Title: 关于 2018-04-08 移动端适配常识中的根元素 font-size 大小问题 · Issue #23 · 2017-TopView-FrontEnd/JavaScript-For-Us · GitHub

Open Graph Title: 关于 2018-04-08 移动端适配常识中的根元素 font-size 大小问题 · Issue #23 · 2017-TopView-FrontEnd/JavaScript-For-Us

X Title: 关于 2018-04-08 移动端适配常识中的根元素 font-size 大小问题 · Issue #23 · 2017-TopView-FrontEnd/JavaScript-For-Us

Description: 文中「rem配合font-size布局」处,提到根元素 的 font-size 的大小(基准值)公式: 基准值 = document.documentElement.clientWidth * dpr / 10 这里本人做了测试,如果 中已经添加了 viewport 的 meta 标签,document.documentElement.clientWidth 这个值是进行缩放后的值。 以 iPhone6 为例,该设备的屏幕宽度为 375,dp...

Open Graph Description: 文中「rem配合font-size布局」处,提到根元素 的 font-size 的大小(基准值)公式: 基准值 = document.documentElement.clientWidth * dpr / 10 这里本人做了测试,如果 中已经添加了 viewport 的 meta 标签,document.documentElement.clientWidth 这个...

X Description: 文中「rem配合font-size布局」处,提到根元素 <html> 的 font-size 的大小(基准值)公式: 基准值 = document.documentElement.clientWidth * dpr / 10 这里本人做了测试,如果 <head> 中已经添加了 viewport 的 meta 标签,document.documentElement.cl...

Opengraph URL: https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"关于 2018-04-08 移动端适配常识中的根元素 font-size 大小问题","articleBody":"文中「[rem配合font-size布局](https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us/blob/master/2018.04.08/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E9%80%82%E9%85%8D%E5%B8%B8%E8%AF%86.md#rem%E9%85%8D%E5%90%88font-size%E5%B8%83%E5%B1%80)」处,提到根元素 `\u003chtml\u003e` 的 font-size 的大小(基准值)公式:\r\n\r\n```js\r\n基准值 = document.documentElement.clientWidth * dpr / 10\r\n```\r\n\r\n这里本人做了测试,如果 `\u003chead\u003e` 中已经添加了 viewport 的 meta 标签,`document.documentElement.clientWidth` 这个值是进行缩放后的值。\r\n\r\n以 iPhone6 为例,该设备的屏幕宽度为 375,dpr 为 2。 页面未添加 viewport 的 meta 标签之前,`document.documentElement.clientWidth` 为 980,添加  `\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no\"\u003e\r\n` 之后,`document.documentElement.clientWidth` 为 750。\r\n\r\n**结论**就是:根元素 `\u003chtml\u003e` 的 font-size 的大小(基准值)的设置这里是**不需要再乘 dpr** 的。\r\nemmm,这是我对该文章的思考,就这样。","author":{"url":"https://github.com/jermyn626","@type":"Person","name":"jermyn626"},"datePublished":"2018-04-10T06:57:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/23/JavaScript-For-Us/issues/23"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:62816d51-9208-24fb-c6a1-e72e2e6f1226
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E54:4032B:9B246:D6C7B:698F17B5
html-safe-nonce7dd5e30d0ebb181484723d7bbe3df2555fde01f18b85f5e012331c72f9cf79fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTU0OjQwMzJCOjlCMjQ2OkQ2QzdCOjY5OEYxN0I1IiwidmlzaXRvcl9pZCI6IjYzNjA5MzIxMzg4MzQzOTAyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac255c38aa90831a98cca0bc1d249d5765678ec64f277c4c0dd3350d11f69d694a
hovercard-subject-tagissue:312795149
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/2017-TopView-FrontEnd/JavaScript-For-Us/23/issue_layout
twitter:imagehttps://opengraph.githubassets.com/17da7ab6267bb69609f531cbc8d1a0c8d25e3943a3988c2ad644d8654b8ba4fb/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17da7ab6267bb69609f531cbc8d1a0c8d25e3943a3988c2ad644d8654b8ba4fb/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
og:image:alt文中「rem配合font-size布局」处,提到根元素 的 font-size 的大小(基准值)公式: 基准值 = document.documentElement.clientWidth * dpr / 10 这里本人做了测试,如果 中已经添加了 viewport 的 meta 标签,document.documentElement.clientWidth 这个...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejermyn626
hostnamegithub.com
expected-hostnamegithub.com
None2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff
turbo-cache-controlno-preview
go-importgithub.com/2017-TopView-FrontEnd/JavaScript-For-Us git https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us.git
octolytics-dimension-user_id26643728
octolytics-dimension-user_login2017-TopView-FrontEnd
octolytics-dimension-repository_id96519404
octolytics-dimension-repository_nwo2017-TopView-FrontEnd/JavaScript-For-Us
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id96519404
octolytics-dimension-repository_network_root_nwo2017-TopView-FrontEnd/JavaScript-For-Us
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec9646ffd6f86b00952c2b39e3c62e15904eff1e5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F2017-TopView-FrontEnd%2FJavaScript-For-Us%2Fissues%2F23
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F2017-TopView-FrontEnd%2FJavaScript-For-Us%2Fissues%2F23
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=2017-TopView-FrontEnd%2FJavaScript-For-Us
Reloadhttps://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
Reloadhttps://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
Reloadhttps://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
2017-TopView-FrontEnd https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd
JavaScript-For-Ushttps://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2F2017-TopView-FrontEnd%2FJavaScript-For-Us
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2F2017-TopView-FrontEnd%2FJavaScript-For-Us
Star 3 https://patch-diff.githubusercontent.com/login?return_to=%2F2017-TopView-FrontEnd%2FJavaScript-For-Us
Code https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us
Issues 5 https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues
Pull requests 0 https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/pulls
Actions https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/actions
Projects 0 https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/projects
Security 0 https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/security
Insights https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/pulse
Code https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us
Issues https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues
Pull requests https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/pulls
Actions https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/actions
Projects https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/projects
Security https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/security
Insights https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23
关于 2018-04-08 移动端适配常识中的根元素 font-size 大小问题https://patch-diff.githubusercontent.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23#top
https://github.com/jermyn626
https://github.com/jermyn626
jermyn626https://github.com/jermyn626
on Apr 10, 2018https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us/issues/23#issue-312795149
rem配合font-size布局https://github.com/2017-TopView-FrontEnd/JavaScript-For-Us/blob/master/2018.04.08/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E9%80%82%E9%85%8D%E5%B8%B8%E8%AF%86.md#rem%E9%85%8D%E5%90%88font-size%E5%B8%83%E5%B1%80
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.