-
Hi, some elements do not appear when the .js is lazyload. Could you please fix it ? Thank you
-
### Describe the bug
I created a plugin as a custom element with **Svelte 3** it was generating a small bundle size around `70kb` but after migration to **Svelte 4** its now around `120kb`, that's al…
-
- 使用window.变量名定义为全局变量,但是注意:调用时候建议写上window.变量名,当然也可以不写
- 当全局变量跟局部变量重名时,局部变量的scope会覆盖掉全局变量的scope,当离开局部变量的scope后,又重回到全局变量的scope,而当全局变量遇上局部变量时,怎样使用全局变量呢?用window.globalVariableName
全局变量的优点:
> 可以减少变量的个数,减…
-
[TOC]
#### 移动端适配目的与操作思路
目的:
等比缩放,在不同屏幕宽度的设备上,以 iphone 6 为基准设置元素尺寸,更大的屏幕放大,更小的屏幕缩小。
操作思路:
1. 找一个基准值,基准值可以随着屏幕宽度的变化而变化 (使用 rem)
2. 根据屏幕宽度变化,设置基准值的大小 1rem = doucment.documentEleme…
-
reflection is slow, so if we pre-compile all of it, startup time will be faster (tested with old version reveal startup times goes from 15 seconds to 6 second)
-
```
So today I decided I wanted to be able to spawn Apple-esque "modal" dialog
boxes. You know the kind: the ones that pop up when an application requests
permission to use your location informatio…
-
I wanted to migrate my Vue 2 project to Vue 3.
The problem is, that the `wrap`-function is still using and expecting the `Vue`-instance, which is why i get the following error:
```
vue-wc-wrapper.j…
-
If so.. is there anything special we have to do? I'm trying with a very basic html (see below) and not getting Tailwind styles
```
Fancy Tailwind Table
…
-
**Describe the project you are working on:**
Checking out Game engines
**Describe the problem or limitation you are having in your project:**
I have to create my own Sprite by myself even if I wa…
I7SOD updated
1 month ago
-
主要的原因还是开发的时候在ios上发现1px的border线会占用2px的位置,所以稍微调研了一下下。
所以首先要明白的几个点:
#### 物理像素(physical pixel)
物理像素往往和设备像素挂钩,他是设备(pc,移动端)能控制颜色,长宽的最小显示单位。
#### 设备独立像素(device-independent pixel)
设备独立像素也称为密度无关像素,代表一…
bibi7 updated
4 years ago