这是林泊百科的迁移技术测试站点,所有改动不会同步到林泊百科上,此站点将会在正式迁移后关闭,请勿存放重要数据
用户:晨茗biu~/common.css:修订间差异
跳转到导航
跳转到搜索
创建页面,内容为“<div class="container"> <div class="pixel one"></div> </div> <style> .container { →像素画的大小: width: 100px; height: 100px; } .pixel { →使伪元素的位置可调整: position: relative; } .pixel::before { content: ""; →一个点的大小(例:20px x 20px): width: 20px; height: 20px; →box-shadow 着色,伪元素设为透明: background-color: transparent; /* 调整伪元素位置,让左上角成为(0,0)…” 标签:(旧)WikiEditor |
小 页面内容被替换为“<style> .box{ width: 10px; height: 10px; box-shadow: 10px 10px #FFFF00; } </style>” 标签:替换 (旧)WikiEditor |
||
| 第1行: | 第1行: | ||
<style> | <style> | ||
. | .box{ | ||
width: 10px; | |||
height: 10px; | |||
box-shadow: 10px 10px #FFFF00; | |||
} | } | ||
</style> | </style> | ||
2025年3月8日 (六) 01:23的版本
<style>
.box{
width: 10px;
height: 10px;
box-shadow: 10px 10px #FFFF00;
}
</style>