![](https://img-blog.csdnimg.cn/20df9196346d445daf11aae117ee618b.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
前端面试宝典
理解记忆
实在不行就背下来吧,还能怎样?
不吃虾米虾皮虾酱
GitHub&掘金:festinalente|CSDN主要记录零散内容
展开
-
CSS | 盒模型的宽度如何计算
盒模型的宽度如何计算 如下代码,请问div1的offsetWidth是多大? <style> #div1 { width: 100px; padding: 10px; border: 1px solid #ccc; margin: 10px; } </style> <div id="div1"></div> offsetWidth = (内容宽度 + 内边距 + 边框), 无外边距 因此答案是122px 如果让原创 2021-10-27 20:44:25 · 441 阅读 · 1 评论 -
HTML | 如何理解HTML语义化?
如何理解HTML语义化? 什么是语义化? 语义化就是正确的标签做正确的事情,表达正确的意思。 语义化作用 让人更容易读懂(增加代码可读性) 让搜索引擎更容易读懂(SEO) <div>标题</div> <div> <div>一段文字</div> <div> <div>列表1</div> <div>列表2</div> </div> </di原创 2021-10-27 19:11:23 · 98 阅读 · 0 评论 -
JavaScript | typeof运算符功能
typeof运算符功能 识别所有值类型let a const b = true const n = 123 const str = 'abc' const big = 2n //A BigInt is created by appending n to the end of an integer or by calling the constructor. const bigi = BigInt(3) const s = Symbol('s') console.log(`typeof a ? ${t原创 2021-10-27 00:38:20 · 115 阅读 · 0 评论