我需要帮助才能使这两个<div>(#side-nav和#content-wrapper)独立滚动,
<div id="wrapper">
<div id="top-nav">
Top nav
</div>
<div id="side-nav">
<ul>
<li>Thing</li>
<li>Thing</li>
</ul>
</div>
<div id="content-wrapper">
<!-- Ton of conent here -->
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
#wrapper {
width: 100%;
background-color: #fff;
}
#top-nav {
position: fixed;
top: 0;
height: 60px;
width: 100%;
background-color: green;
}
#side-nav {
position: fixed;
width: 250px;
height:100vh;
overflow-y: scroll;
background-color: red;
}
#content-wrapper {
margin: 60px 0 0 250px;
padding: 0 30px;
overflow-y: scroll;
background-color: blue;
} …Run Code Online (Sandbox Code Playgroud) 我希望我的treepanel在双击时做一些事情.
但是,当我双击treenode时,节点总是消耗或折叠.
当我双击时,如何禁用此扩展或折叠.
我的英语不是很好抱歉!
我正在尝试使用QWebview在打印机上打印图像文件,但不打印图像空白页.请找到以下代码.
void ChartViewer::onprintBtnClicked()
{
QString fileName = QFileDialog::getOpenFileName(this,"Open File",QString(),"Pdf File(*.png)");
qDebug()<<"Print file name is "<<fileName;
if(fileName.endsWith(".png"))
{
QPrinter printer;
QWebView *view = new QWebView;
QPrintDialog *dlg = new QPrintDialog(&printer,this);
printer.setOutputFileName(fileName);
if(dlg->exec() != QDialog::Accepted)
return;
view->load(fileName);
view->print(&printer);
}
}
Run Code Online (Sandbox Code Playgroud)
如果我使用view-> show(),那么它已正确显示图像,但打印页面空白.请你查看上面的代码并纠正我在哪里做错了.
此致Lekhraj
我正在使用swfupload插件.当我尝试上传图像时,我想传递两个参数,但参数未被传递.
var id1='g';
var opt1='g';
function getValues()
{
id1 = $("#id").val();
opt1=$("#opt").val();
return id1.concat(opt1);
}
$(document).ready(function(){
alert(getValues()); // Here coming
$('#swfupload-control').swfupload({
upload_url: "upload-file.php?para=getValues()",//Here not coming
file_post_name: 'uploadfile',
file_size_limit : "8024",
file_types : "*.jpg;*.png;*.gif",
file_types_description : "Image files",
file_upload_limit : 10,
flash_url : "js/swfupload/swfupload.swf",
button_image_url : 'js/swfupload/wdp_buttons_upload_114x29.png',
button_width : 114,
button_height : 29,
button_placeholder : $('#button')[0],
debug: false
})
.bind('fileQueued', function(event, file){
var listitem='<li id="'+file.id+'" >'+
'File: <em>'+file.name+'</em> ('+Math.round(file.size/1024)+' KB) <span class="progressvalue" ></span>'+
'<div class="progressbar" ><div class="progress" ></div></div>'+
'<p …Run Code Online (Sandbox Code Playgroud)