本周的Web平台新闻涵盖了几个关键更新:Google搜索控制台简化了HTML检查,阐明了CSS自定义属性的行为,突出显示了JavaScript变量的全局范围,并宣布了Babel的defaults
查询支持。另外,还提供了2019年6月新闻的方便汇编。
Google搜索控制台中增强的HTML检查
Google Search Console的URL检查工具现在具有改进的控件,用于搜索和复制Page HTML。
重要的是:该工具显示有关Google的特定页面索引版本的信息。访问搜索控制台,网址为https://www.php.cn/link/e53da06660d5d695870b49aee039f9148 。
(通过Barry Schwartz)
CSS自定义属性计算:每元素一次
CSS自定义属性仅计算每个元素一次。重新定义嵌套元素上另一个自定义属性中使用的自定义属性不会影响父母的计算值。
<code>html { --angle: 90deg; --gradient: linear-gradient(var(--angle), blue, red); } header { --angle: 270deg; /* ignored */ background-image: var(--gradient); /* inherited value */ }</code>
(通过Miriam Suzanne)
了解JavaScript脚本范围
用let
, const
或class
声明的变量在<script> element remain accessible to subsequent scripts on the page. This is considered the global scope of scripts.</script>
(via Surma)
Babel's env
Preset Now Supports defaults
Query
Babel's @babel/preset-env
now accepts the defaults
query, targeting browserslist's default browsers (listed at browsersl.ist). Omitting target browsers causes Babel to apply all syntax transforms.
<code>{ "presets": [ [ "@babel/preset-env", { "targets": { "browsers": "defaults" } } ] ] }</code>
(via Nicolò Ribaudo)
June 2019 Web Platform News Compilation
A comprehensive PDF (10 pages) summarizing all 59 June 2019 news items is available for download.
Download PDF
以上是每周平台新闻:HTML在搜索控制台,全局脚本范围中的HTML检查,Babel Envs添加默认查询查询的详细内容。更多信息请关注PHP中文网其他相关文章!

是的,youshouldlearnbothflexboxandgrid.1)flexboxisidealforone-demensional,flexiblelayoutslikenavigationmenus.2)gridexcelstcelsintwo-dimensional,confffferDesignssignssuchasmagagazineLayouts.3)blosebothenHancesSunHanceSlineHancesLayOutflexibilitibilitibilitibilitibilityAnderibilitibilityAndresponScormentilial anderingStruction

重构自己的代码看起来是什么样的?约翰·瑞亚(John Rhea)挑选了他写的一个旧的CSS动画,并介绍了优化它的思维过程。

CSSanimationsarenotinherentlyhardbutrequirepracticeandunderstandingofCSSpropertiesandtimingfunctions.1)Startwithsimpleanimationslikescalingabuttononhoverusingkeyframes.2)Useeasingfunctionslikecubic-bezierfornaturaleffects,suchasabounceanimation.3)For

@keyframesispopularduetoitsversatoryand and powerincreatingsmoothcssanimations.keytricksinclude:1)definingsmoothtransitionsbetnestates,2)使用AnimatingmatematingmultationmatingMultationPropertiessimultane,3)使用使用4)使用BombingeNtibalibility,4)使用BombingingWithjavofofofofofoffo

CSSCOUNTERSAREDOMANAGEAUTOMANAMBERINGINWEBDESIGNS.1)他们可以使用forterablesofcontents,ListItems,and customnumbering.2)AdvancedsincludenestednumberingSystems.3)挑战挑战InclassINCludeBrowsEccerCerceribaliblesibility andperformiballibility andperformissises.4)创造性

使用滚动阴影,尤其是对于移动设备,是克里斯以前涵盖的一个微妙的UX。杰夫(Geoff)涵盖了一种使用动画限制属性的新方法。这是另一种方式。


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

Dreamweaver CS6
视觉化网页开发工具

VSCode Windows 64位 下载
微软推出的免费、功能强大的一款IDE编辑器

SublimeText3 Linux新版
SublimeText3 Linux最新版

禅工作室 13.0.1
功能强大的PHP集成开发环境

安全考试浏览器
Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。