-6ren"> -我想看看其他人是如何编码他们的网站的,但在试图理解它的作用时遇到了困难: 这样做的目的是什么,有人可以向我解释一下吗? 最佳答案 因为他们正在使用 modernizr Modernizr 检测浏览器-6ren">
gpt4 book ai didi

html - 使用Firebug,下为什么第一行是

转载 作者:太空狗 更新时间:2023-10-29 14:53:16 34 4
gpt4 key购买 nike

我想看看其他人是如何编码他们的网站的,但在试图理解它的作用时遇到了困难:

<html class="js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange
history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity
cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent
video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths"
lang="en" style="">

这样做的目的是什么,有人可以向我解释一下吗?

最佳答案

因为他们正在使用 modernizr

Modernizr 检测浏览器支持和不支持的功能。作为响应,它附加了不同的类 HTML元素。然后可以编写这些内容来解决跨浏览器兼容性问题。

作为<html>是文档入口点或主容器,因此它将类添加到 HTML标签。

Similar Question

关于html - 使用Firebug,<DOCTYPE>下为什么第一行是<html class= "bunch of tags inserted here">,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27674972/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com