【发布时间】:2018-02-09 21:43:47
【问题描述】:
页面操作 html:
<!DOCTYPE html>
<html>
<head>
<script src="jscolor.js"></script>
<script src="popup.js"></script>
<style>
body{
min-width: 250px;
min-height: 150px;
}
</style>
</head>
<body>
<button
class="jscolor {valueElement:null,value:'66ccff'}"
style="width:50px; height:20px;"></button>
</body>
</html>
这个 html 就像一个网页一样工作得很好。但是当我将它用作 chrome 扩展页面操作 html 时,样式都搞砸了。为什么是这样?我还需要在 manifest.josn 中包含源文件吗?
【问题讨论】:
标签: html google-chrome-extension jscolor