【发布时间】:2021-09-26 17:34:56
【问题描述】:
即使使用默认配置,我的网站也会为我的所有组件显示不需要的白色边框:
Main.kt
fun main() {
renderComposable("root") {
Div({ style { height(300.px); backgroundColor(blue) } }) { }
}
}
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Website</title>
</head>
<body>
<div id="root"></div>
<script src="MyApp.js"></script>
</body>
</html>
渲染
你能注意到蓝色背景周围的白色边框吗?
为什么会这样?这个白边怎么去掉?
【问题讨论】:
标签: html kotlin-js jetbrains-compose compose-web