下面的html页面包含一个页脚(位置:固定)和一个“表格”(位置:绝对)。
我的问题:当我向下滚动时,如何防止工作表的底端隐藏在页脚下方?
我所有的填充和边距尝试都失败了(请仅使用html / css解决方案。)
的CSS
body {
background: green; }
.Background {
top: 0px;
right: 0px; }
.Footer {
position: fixed;
bottom: 0;
left: 0px;
height: 30px;
width: 100%;
background: orange;
padding: 0 10px 0 10px; }
.Sheet {
position: absolute;
top: 100px;
left: 25px;
border-style: solid;
border-width: 2px;
padding: 20px;
background: red; }
Run Code Online (Sandbox Code Playgroud)
的HTML
<body>
<div class="Background">
Background</div>
<div class="Sheet">
<div style="line-height: 200px">
Sheet<br>
Sheet<br>
Sheet<br></div>
Sheet<br>
Sheet</div>
<div class="Footer">
Footer </div>
</body>
Run Code Online (Sandbox Code Playgroud) 我有一个Angular应用程序,显示人物配置文件图像(从服务器加载),并有一个选项来更改它.
当应用程序第一次加载时,图像会正确显示.我调用Web服务来更改服务器上的映像.问题是甚至在更改远程服务器上的图像后,即使刷新页面,浏览器上的图像也不会反映更改.
我尝试使用meta标签禁用缓存,但它不适合我.
仅在删除浏览器缓存后,图像才会在浏览器上更改.我怎么解决这个问题?
基于注释的示例流程:
http://server_path/image_name.jpg 问题:未反映的更改图像.
我有2个图片框我想并行更新.
现在我有这个:
picturebox_1.Refresh();
picturebox_2.Refresh();
Run Code Online (Sandbox Code Playgroud)
在每个油漆事件中我都有这样的东西:
Picturebox 1:
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawImage(mybitmap1, X, Y);
e.Graphics.DrawLine(mypen, verticalstart, verticalend); //Draw Vertical
Run Code Online (Sandbox Code Playgroud)
Picturebox 2:
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawImage(mybitmap2, X, Y);
e.Graphics.DrawLine(mypen, verticalstart, verticalend);//Draw Vertical line.
Run Code Online (Sandbox Code Playgroud)
是否有捷径可寻?我是线程等新手.
谢谢!
在我们的源代码中,我们有一些dialog.xml文件来表示对话框组件的结构.我们通过maven将项目部署到我们的本地CQ服务器进行开发和测试.有时我们需要通过CRXDE Lite(在CQ服务器中)修改对话框组件,因为以这种方式编辑对话框要快得多.
问题是:如何将已编辑的对话框组件(从CRXDE Lite)导出回相应的dialog.xml文件?
通常,CSS可以用3种方式编写
内联CSS
<div style="float:left; border: 1px solid #000;">Hello</div>
Run Code Online (Sandbox Code Playgroud)
HTML头部的内部CSS
<style>
.div_class
{
float:left;
border: 1px solid #000;
}
</style>
<div class="div_class">Hello</div>
Run Code Online (Sandbox Code Playgroud)
最后
外部CSS在另一个外部CSS文件中
<head>
<link href="//abc.com/css/style.css"/>
</head>
<div class="div_class">Hello</div>
Run Code Online (Sandbox Code Playgroud)
所以我的问题是,当我应该使用它们时,任何人都可以向我解释这三种方法和情况的利弊.
我有index.html,Home.html和AboutUs.html
我的页面从index.html开始.加载后,我使用jquery从Home.html插入滑块的html代码.它正在发挥作用.当我点击关于我们时,我用jQuery从AboutUs.html更改了div的html代码.它也在工作.
但当我点击返回主菜单时,滑块无法正常工作.Javascript文件已断开连接.
我在index.html链接了所有Javascript和CSS文件.
我的index.html和Jquery代码
<html>
<head>
<title>IVORY:SAMPLE ONE</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.css">
<link href="css/js-image-slider.css" rel="stylesheet" type="text/css" />
<script src="js/js-image-slider.js" type="text/javascript"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<link href="css/generic.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function()
{
$('#control').load('Home.html #controlHome') ;
$('#home').click(function ()
{
$('#control').load('Home.html #controlHome') ;
});
$('#men').click(function ()
{
$('#control').load('Men.html ') ;
});
$('#women').click(function ()
{
$('#control').load('Women.html ') ;
});
$('#cosmetics').click(function ()
{
$('#control').load('Cosmetics.html ') ;
}); …Run Code Online (Sandbox Code Playgroud)