0
当我在本地运行ASP.NET MVC站点时,任何页面的源代码都会在<html>
标记中显示看似荒谬的CSS类。我的<html>标签上的所有课程都是什么意思?
<html class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch
geolocation postmessage websqldatabase indexeddb hashchange history draganddrop
websockets rgba hsla multiplebgs backgroundsize borderimage borderradius
boxshadow textshadow opacity cssanimations csscolumns cssgradients
cssreflections csstransforms csstransforms3d csstransitions fontface
generatedcontent video audio localstorage sessionstorage webworkers
applicationcache svg inlinesvg smil svgclippaths">
我们的网站使用了许多框架,包括jQuery,AngularJS,jqWidgets和其他几个小框架。有这么多的课程是典型的吗?有没有办法让我找到每个人的来源?当我不明白它是如何工作的时候,我不喜欢有那么多的开销。
一些类将被用于重置其添加CSS类由不同浏览器提供的默认CSS。您可能会包含一些JavaScript库,它将在运行时通过代码添加类。 – AmanSinghal
是的,这些类都是由一个或一些框架添加的。不过,这些肯定来自jQuery或Angular以外的东西。 – TylerH