我正在开发 chrome 扩展,我想制作边框半径并在 css 中使用半径边框属性,但它在子元素中是边界。我的代码 html 在这里:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="border-radius:10px">
<head>
</head>
<body>
content here
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我想要边框如下图:
我有一个网页和一个 chrome 扩展程序,如何打开像 chrome-extension://chrome-id/page.html 这样的网址。这是我的代码:
$(document).on('click', '#btnOpenChromeExtension', function () {
window.open("chrome-extension://chrome-id/webpage.html", "_blank");
});
Run Code Online (Sandbox Code Playgroud)
但是,当单击时,它会在空白页面中打开新选项卡,网址为:about:blank。如何打开 chrome-extension 链接?