Javascript 面板窗口不滚动
我正在使用以下代码创建面板,但不知何故它无法滚动:Javascript 面板窗口不滚动,javascript,google-chrome-extension,Javascript,Google Chrome Extension,我正在使用以下代码创建面板,但不知何故它无法滚动: chrome.windows.create({ url: "panel.html", type: "panel", focused: true, width: 500, height: 320 }, 如何使其可滚动 Chrome版本 OSX 10.6上的40
chrome.windows.create({
url: "panel.html",
type: "panel",
focused: true,
width: 500,
height: 320
},
如何使其可滚动
Chrome版本
OSX 10.6上的40.0.2214.115(官方版本)
panel.css
body {
font-family: Helvetica, Arial;
width: 300px;
background-color: #ffe; }
.error {
color: #900; }
span.active {
color: #060; }
span.inactive {
color: #600; }
.ad video {
width: 328%;
}
panel.html
<html>
<head>
<title>This is PANEL</title>
<link href='assets/stylesheets/panel.css' rel='stylesheet'>
<script src='assets/javascripts/jquery-1.10.2.js'></script>
<script src='assets/javascripts/panel.js'></script>
</head>
</html>
<body>
<header>
<div class="title"></div>
</header>
<div class='content'>
<div class='panel'>
<div class='ad'>
<div class='no-activity' style='display: none'>
Lorem IsPum
</div>
<div class='skipped' style='display: none'>
Lorem IsPum
</div>
<div class='activity survey' style='display: none'>
<p>Lorem IsPumit?</p>
<p>
<textarea rows='8' class='comments' placeholder='Enter comments. Enter N/A if you have no comments.'></textarea>
</p>
<p>
<button id='show-next-ad'>Show Next Ad</button>
</p>
</div>
</div>
</div>
<div class='panel'>
<div class="video-player">
<div class="add"></div>
</div>
</div>
</div>
</body>
这是面板
奥雷姆
奥雷姆
Lorem IsPumit?
显示下一个广告
提示:除非切换实验标志,否则键入:“panel”
将被禁用。@Xan是的,它已启用,这就是为什么我能够看到它。我的意思是,尽管OSX 10.6上的panel.html
?@Xan40.0.2214.115(官方版本)
中有滚动条,但它没有滚动。它有一个视频播放器和几个按钮。它的css是body{font-family:Helvetica,Arial;宽度:300px;背景色:#ffe;}。错误{color:#900;}span.active{color:#060;}span.inactive{color:#600;}。广告视频{width:328%;}
请将其编辑成问题,在评论中无法阅读。