---
title: "Discussion on \"页面响应式rem\" | Hashnode"
description: "Discussion on \"页面响应式rem\". function handleResize() {\n    var htmlWidth = document.documentElement.clientWidth || document.body.clientWidth\n    let htmlDom = document.getElementsByTagName('html')[0]\n    // 处理不同页面宽度下rem的值\n    if (htmlWidth < 1400 && htmlWidth > 1000) {\n      htm..."
url: "https://hashnode.com/posts/rem/62d8bae63df6e54ab8e5d1cd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [页面响应式rem](https://zmblog.hashnode.dev/rem?utm_source=hashnode&utm_medium=feed)

function handleResize() { var htmlWidth = document.documentElement.clientWidth || document.body.clientWidth let htmlDom = document.getElementsByTagName('html')\[0\] // 处理不同页面宽度下rem的值 if (htmlWidth < 1400 && htmlWidth > 1000) { htm...

Jul 21, 2022 · 1 min read · zmblog.hashnode.dev  
Read the article

-   [#js](https://hashnode.com/tag/js)

## Written by

[明](https://hashnode.com/@zm144)

@zm144

  
[View profile](https://hashnode.com/@zm144)

learn

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
