gpt4 book ai didi

javascript - 如何限制 Google Chrome 扩展弹出窗口的大小?

转载 作者:行者123 更新时间:2023-11-28 11:27:36 25 4
gpt4 key购买 nike

我正在创建一个 Google Chrome 扩展程序,它根据提供的选项执行一些基本搜索。

这就是目前的样子

enter image description here

问题是两侧有很多空白,看起来不太好,特别是因为这是一个弹出窗口并覆盖在当前页面上。

如何确保弹出窗口使用所需的最小空间?

最佳答案

正如 nkorth 所说,这非常简单,使用 CSS。让我为您写出代码:

<html>
<head>
<style type="text/css">
body {
width: 200px;
height: 200px;
overflow: hidden;
}
</style>
</head>
<body>
text text text
</body>
</html>

关于javascript - 如何限制 Google Chrome 扩展弹出窗口的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6160568/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com