- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
每列底部的数字代表每列值的总和。
我需要更改什么才能使所有总值在页面底部的同一级别对齐,就在 slider 上方?
$(document).ready(function(){
/* This code is executed after the DOM has been completely loaded */
/* The number of event sections / years with events */
var tot=$('.event').length;
$('.eventList li').click(function(e){
showWindow('<div>'+$(this).find('div.content').html()+'</div>');
});
/* Each event section is 320 px wide */
var timelineWidth = 320*tot;
var screenWidth = $(document).width();
$('#timelineScroll').width(timelineWidth);
/* If the timeline is wider than the screen show the slider: */
if(timelineWidth > screenWidth)
{
$('#scroll,#slider').show();
$('#centered,#slider').width(120*tot);
/* Making the scrollbar draggable: */
$('#bar').width((120/320)*screenWidth).draggable({
containment: 'parent',
drag: function(e, ui) {
if(!this.elem)
{
/* This section is executed only the first time the function is run for performance */
this.elem = $('#timelineScroll');
/* The difference between the slider's width and its container: */
this.maxSlide = ui.helper.parent().width()-ui.helper.width();
/* The difference between the timeline's width and its container */
this.cWidth = this.elem.width()-this.elem.parent().width();
this.highlight = $('#highlight');
}
/* Translating each movement of the slider to the timeline: */
this.elem.css({marginLeft:'-'+((ui.position.left/this.maxSlide)*this.cWidth)+'px'});
/* Moving the highlight: */
this.highlight.css('left',ui.position.left)
}
});
$('#highlight').width((120/320)*screenWidth-3);
}
});
function showWindow(data)
{
/* Each event contains a set of hidden divs that hold
additional information about the event: */
var producto = $('.producto',data).text();
var date = $('.date',data).text();
var body = $('.body',data).html();
$('<div id="overlay">').css({
width:$(document).width(),
height:$(document).height(),
opacity:0.6
}).appendTo('body').click(function(){
$(this).remove();
$('#windowBox').remove();
});
$('body').append('<div id="windowBox"><div id="productoDiv">'+producto+'</div>'+body+'<div id="date">'+date+'</div></div>');
$('#windowBox').css({
width:500,
height:350,
left: ($(window).width() - 500)/2,
top: ($(window).height() - 350)/2
});
}/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
body,h1,h2,h3,p,quote,small,form,input,ul,li,ol,label{
/* Simple page reset */
margin:0;
padding:0;
}
body{
/* Setting default text color, background and a font stack */
color:#555555;
font-size:0.825em;
background: #fcfcfc;
font-family:Arial, Helvetica, sans-serif;
}
.event{
/* Contains the event header and body list */
float:left;
padding:4px;
text-align:left;
width:300px;
margin:0 5px 50px;
}
.eventList li{
/* The individual events */
background:#F4F4F4;
border:1px solid #EEEEEE;
list-style:none;
margin:5px;
padding:4px 7px;
/* CSS3 rounded corners */
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
}
.eventList li:hover{
/* The hover state: */
cursor:pointer;
background:#E6F8FF;
border:1px solid #D4E6EE;
color:#548DA5;
}
li span{
/* The event icon */
display:block;
float:left;
height:16px;
margin-right:5px;
width:16px;
}
/* Individual background images for each type of event: */
li.news span.icon { background:url(../img/icons/newspaper.png) no-repeat; }
li.image span.icon { background:url(../img/icons/camera.png) no-repeat; }
li.milestone span.icon { background:url(../img/icons/chart.png) no-repeat; }
div.content{
/* This div contains additional data for the content */
display:none;
}
.eventHeading{
/* The colorful year headings at the top */
font-size:2em;
margin:-5px -5px 10px;
padding:2px 5px;
text-align:center;
}
/* Three color styles for the headings: */
.eventHeading.chreme{
background:#FBF7F0;
border:1px solid #EEE4D4;
color:#A78B5F;
}
.eventHeading.blue{
background:#E6F8FF;
border:1px solid #D4E6EE;
color:#548DA5;
}
.eventHeading.green{
background:#E6FFDF none repeat scroll 0 0;
border:1px solid #C9E6C1;
color:#6EA85F;
}
#timelineLimiter{
/* Hides the overflowing timeline */
width:100%;
overflow:hidden;
padding-top:10px;
margin:40px 0;
}
#scroll{
/* The small timeline below the main one. Hidden here and shown by jQuery if JS is enabled: */
display:none;
height:30px;
background:#F5F5F5;
border:1px solid #EEEEEE;
color:#999999;
}
.scrollPoints{
/* The individual years */
float:left;
font-size:1.4em;
padding:4px 10px;
text-align:center;
width:100px;
position:relative;
z-index:10;
}
#centered{
/* Centers the years, width is assigned by jQuery */
margin:0 auto;
position:relative;
}
#slider{
/* Holds the scroll bar */
margin:10px auto;
height:25px;
display:none;
}
#bar{
/* The scroll bar */
background:url(../img/slider_center.png) repeat-x center center;
height:25px;
cursor:pointer;
z-index:999; /* make it on top of others */
}
#barLeft{
background:transparent url(../img/slider.png) no-repeat scroll left center;
height:25px;
width:20px;
left:0;
top:0;
position:absolute;
}
#barRight{
background:transparent url(../img/slider.png) no-repeat scroll right center;
height:25px;
position:absolute;
right:0;
top:0;
width:20px;
}
#overlay{
/* The overlay that darkens the page when an event is clicked */
position:absolute;
z-index:10;
top:0;
left:0;
background-color:#222222;
}
#windowBox{
/* Shows details about the event on click */
position:absolute;
z-index:20;
background-color:#fcfcfc;
padding:10px;
border:2px solid #666666;
overflow:auto;
}
#titleDiv{
/* The title of the windowBox */
background:#F5F5F5;
border:1px solid #EEEEEE;
color:#AAAAAA;
font-size:1.5em;
margin-bottom:10px;
padding:5px 10px;
}
#date{
/* The date on the bottom of the windowBox */
bottom:20px;
color:#999999;
font-size:0.8em;
font-style:italic;
position:absolute;
right:15px;
padding:2px;
background:#FCFCFC;
}
#highlight{
/* The blue highlight that moves with the scroll bar */
height:30px;
position:absolute;
z-index:0;
left:0;
top:0;
background:#E6F8FF;
border:1px solid #D4E6EE;
border-width:0 1px;
}
.clear{
clear:both;
}
/* The styles below are only necessary for the demo page */
h1{
background:#F4F4F4;
border-bottom:1px solid #EEEEEE;
font-family:"Myriad Pro",Arial,Helvetica,sans-serif;
font-size:20px;
font-weight:normal;
margin-bottom:15px;
padding:15px;
text-align:center;
}
h2 {
font-family:"Myriad Pro",Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
padding-right:40px;
position:relative;
right:0;
text-align:right;
text-transform:uppercase;
top:-48px;
}
a, a:visited {
color:#0196e3;
text-decoration:none;
outline:none;
}
a:hover{
text-decoration:underline;
}
p.tutInfo{
/* The tutorial info on the bottom of the page */
padding:10px 0;
text-align:center;
position:absolute;
bottom:0px;
background:#F4F4F4;
border-top:1px solid #EEEEEE;
width:100%;
}
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : Feb 18, 2017, 12:11:54 PM
Author : Rodrigo
*/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/script.js"></script>
</head>
<body>
<div id="main">
<div id="timelineLimiter"> <!-- Hides the overflowing timelineScroll div -->
<div id="timelineScroll"> <!-- Contains the timeline and expands to fit -->
<div class="event">
<div class="eventHeading green">Nov -0001</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Pala</th>
<th style="text-align:right">0</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Pala</div>
<div class="date">November 30, -0001</div>
</div>
</li><h1>0</h1></ul></div>
<div class="event">
<div class="eventHeading blue">May 2015</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Enfriadores Azul</th>
<th style="text-align:right">1,800,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Enfriadores Azul</div>
<div class="date">May 14, 2015</div>
</div>
</li><li class=""><table><tr>
<th>Ladrillo</th>
<th style="text-align:right">1,592,100</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo</div>
<div class="date">May 30, 2015</div>
</div>
</li><h1>3,392,100</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Feb 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Puntilla con Cabeza 2pulg Propack 5kg</th>
<th style="text-align:right">5,100,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Puntilla con Cabeza 2pulg Propack 5kg</div>
<div class="date">February 5, 2017</div>
</div>
</li><h1>5,100,000</h1></ul></div>
<div class="event">
<div class="eventHeading green">Apr 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Varilla 5/8 pulgada x 6 metros cuadrada</th>
<th style="text-align:right">6,800,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Varilla 5/8 pulgada x 6 metros cuadrada</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Segueta 24 dientes paquete 10 unidades 3906-300...</th>
<th style="text-align:right">3,276,430</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Segueta 24 dientes paquete 10 unidades 3906-300...</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Vitaperico1 Kg</th>
<th style="text-align:right">72</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Vitaperico1 Kg</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Llanta 275/55 Rin 20 111S CC LX20</th>
<th style="text-align:right">400</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Llanta 275/55 Rin 20 111S CC LX20</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Parasol Lateral 3 m Blanco</th>
<th style="text-align:right">28</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Parasol Lateral 3 m Blanco</div>
<div class="date">April 14, 2017</div>
</div>
</li><h1>10,076,934</h1></ul></div>
<div class="event">
<div class="eventHeading blue">Jul 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Escobilla Limpiafondo</th>
<th style="text-align:right">1,240,000,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Escobilla Limpiafondo</div>
<div class="date">July 14, 2017</div>
</div>
</li><h1>1,240,000,000</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Aug 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Espatula Extra Ancha</th>
<th style="text-align:right">42</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Espatula Extra Ancha</div>
<div class="date">August 14, 2017</div>
</div>
</li><h1>42</h1></ul></div>
<div class="event">
<div class="eventHeading green">Sep 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Guantes Hilaza Neon Puntos PVC 2 Caras</th>
<th style="text-align:right">280,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Guantes Hilaza Neon Puntos PVC 2 Caras</div>
<div class="date">September 14, 2017</div>
</div>
</li><h1>280,000</h1></ul></div>
<div class="event">
<div class="eventHeading blue">Oct 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Ladrillo hor 3 huecos 9x20x80 9.5k 6.25und/m2</th>
<th style="text-align:right">336,002,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo hor 3 huecos 9x20x80 9.5k 6.25und/m2</div>
<div class="date">October 14, 2017</div>
</div>
</li><h1>336,001,664</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Feb 2021</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Guante Tipo Examen Nitrilo Tallla S x 100 Und</th>
<th style="text-align:right">1,408</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Guante Tipo Examen Nitrilo Tallla S x 100 Und</div>
<div class="date">February 2, 2021</div>
</div>
</li><h1>1,408</h1></ul></div>
<div class="event">
<div class="eventHeading green">Sep 2022</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Alambre #8 100 metros amarillo Conectores y Cables</th>
<th style="text-align:right">1,750,000,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Alambre #8 100 metros amarillo Conectores y Cables</div>
<div class="date">September 18, 2022</div>
</div>
</li><h1>1,750,000,000</h1></ul></div>
<div class="event">
<div class="eventHeading blue">Nov 2022</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Ladrillo</th>
<th style="text-align:right">308,025</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo</div>
<div class="date">November 25, 2022</div>
</div>
</li><h1>308,025</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Apr 2030</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Asoleadora Curva Chocolate</th>
<th style="text-align:right">750,000,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Asoleadora Curva Chocolate</div>
<div class="date">April 16, 2030</div>
</div>
</li><h1>750,000,000</h1></ul></div>
<div class="event">
<div class="eventHeading green">Nov 2098</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Ladrillo refractario 24x12,5x4 1,5 kilos 36u/m2...</th>
<th style="text-align:right">54</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo refractario 24x12,5x4 1,5 kilos 36u/m2...</div>
<div class="date">November 25, 2098</div>
</div>
</li><h1>54</h1></ul></div>
<div class="clear"></div>
</div>
<div id="scroll"> <!-- The year time line -->
<div id="centered"> <!-- Sized by jQuery to fit all the years -->
<div id="highlight"></div> <!-- The light blue highlight shown behind the years -->
<div class="scrollPoints">Nov -0001</div><div class="scrollPoints">May 2015</div><div class="scrollPoints">Feb 2017</div><div class="scrollPoints">Apr 2017</div><div class="scrollPoints">Jul 2017</div><div class="scrollPoints">Aug 2017</div><div class="scrollPoints">Sep 2017</div><div class="scrollPoints">Oct 2017</div><div class="scrollPoints">Feb 2021</div><div class="scrollPoints">Sep 2022</div><div class="scrollPoints">Nov 2022</div><div class="scrollPoints">Apr 2030</div><div class="scrollPoints">Nov 2098</div> <!-- This PHP variable holds the years that have events -->
<div class="clear"></div>
</div>
</div>
<div id="slider"> <!-- The slider container -->
<div id="bar"> <!-- The bar that can be dragged -->
<div id="barLeft"></div> <!-- Left arrow of the bar -->
<div id="barRight"></div> <!-- Right arrow, both are styled with CSS -->
</div>
</div>
</div>
<
</div>
</body>
</html>
最佳答案
更新样式
position:absolute;底部:0; width: 268px;
在 h1 标签
position: relative;margin-bottom: 15px;
in #timelineScroll
$(document).ready(function(){
/* This code is executed after the DOM has been completely loaded */
/* The number of event sections / years with events */
var tot=$('.event').length;
$('.eventList li').click(function(e){
showWindow('<div>'+$(this).find('div.content').html()+'</div>');
});
/* Each event section is 320 px wide */
var timelineWidth = 320*tot;
var screenWidth = $(document).width();
$('#timelineScroll').width(timelineWidth);
/* If the timeline is wider than the screen show the slider: */
if(timelineWidth > screenWidth)
{
$('#scroll,#slider').show();
$('#centered,#slider').width(120*tot);
/* Making the scrollbar draggable: */
$('#bar').width((120/320)*screenWidth).draggable({
containment: 'parent',
drag: function(e, ui) {
if(!this.elem)
{
/* This section is executed only the first time the function is run for performance */
this.elem = $('#timelineScroll');
/* The difference between the slider's width and its container: */
this.maxSlide = ui.helper.parent().width()-ui.helper.width();
/* The difference between the timeline's width and its container */
this.cWidth = this.elem.width()-this.elem.parent().width();
this.highlight = $('#highlight');
}
/* Translating each movement of the slider to the timeline: */
this.elem.css({marginLeft:'-'+((ui.position.left/this.maxSlide)*this.cWidth)+'px'});
/* Moving the highlight: */
this.highlight.css('left',ui.position.left)
}
});
$('#highlight').width((120/320)*screenWidth-3);
}
});
function showWindow(data)
{
/* Each event contains a set of hidden divs that hold
additional information about the event: */
var producto = $('.producto',data).text();
var date = $('.date',data).text();
var body = $('.body',data).html();
$('<div id="overlay">').css({
width:$(document).width(),
height:$(document).height(),
opacity:0.6
}).appendTo('body').click(function(){
$(this).remove();
$('#windowBox').remove();
});
$('body').append('<div id="windowBox"><div id="productoDiv">'+producto+'</div>'+body+'<div id="date">'+date+'</div></div>');
$('#windowBox').css({
width:500,
height:350,
left: ($(window).width() - 500)/2,
top: ($(window).height() - 350)/2
});
}/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
body,h1,h2,h3,p,quote,small,form,input,ul,li,ol,label{
/* Simple page reset */
margin:0;
padding:0;
}
body{
/* Setting default text color, background and a font stack */
color:#555555;
font-size:0.825em;
background: #fcfcfc;
font-family:Arial, Helvetica, sans-serif;
}
.event{
/* Contains the event header and body list */
float:left;
padding:4px;
text-align:left;
width:300px;
margin:0 5px 50px;
}
.eventList li{
/* The individual events */
background:#F4F4F4;
border:1px solid #EEEEEE;
list-style:none;
margin:5px;
padding:4px 7px;
/* CSS3 rounded corners */
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
}
.eventList li:hover{
/* The hover state: */
cursor:pointer;
background:#E6F8FF;
border:1px solid #D4E6EE;
color:#548DA5;
}
li span{
/* The event icon */
display:block;
float:left;
height:16px;
margin-right:5px;
width:16px;
}
/* Individual background images for each type of event: */
li.news span.icon { background:url(../img/icons/newspaper.png) no-repeat; }
li.image span.icon { background:url(../img/icons/camera.png) no-repeat; }
li.milestone span.icon { background:url(../img/icons/chart.png) no-repeat; }
div.content{
/* This div contains additional data for the content */
display:none;
}
.eventHeading{
/* The colorful year headings at the top */
font-size:2em;
margin:-5px -5px 10px;
padding:2px 5px;
text-align:center;
}
/* Three color styles for the headings: */
.eventHeading.chreme{
background:#FBF7F0;
border:1px solid #EEE4D4;
color:#A78B5F;
}
.eventHeading.blue{
background:#E6F8FF;
border:1px solid #D4E6EE;
color:#548DA5;
}
.eventHeading.green{
background:#E6FFDF none repeat scroll 0 0;
border:1px solid #C9E6C1;
color:#6EA85F;
}
#timelineLimiter{
/* Hides the overflowing timeline */
width:100%;
overflow:hidden;
padding-top:10px;
margin:40px 0;
}
#timelineScroll{
position: relative;
margin-bottom: 15px;
}
#scroll{
/* The small timeline below the main one. Hidden here and shown by jQuery if JS is enabled: */
display:none;
height:30px;
background:#F5F5F5;
border:1px solid #EEEEEE;
color:#999999;
}
.scrollPoints{
/* The individual years */
float:left;
font-size:1.4em;
padding:4px 10px;
text-align:center;
width:100px;
position:relative;
z-index:10;
}
#centered{
/* Centers the years, width is assigned by jQuery */
margin:0 auto;
position:relative;
}
#slider{
/* Holds the scroll bar */
margin:10px auto;
height:25px;
display:none;
}
#bar{
/* The scroll bar */
background:url(../img/slider_center.png) repeat-x center center;
height:25px;
cursor:pointer;
z-index:999; /* make it on top of others */
}
#barLeft{
background:transparent url(../img/slider.png) no-repeat scroll left center;
height:25px;
width:20px;
left:0;
top:0;
position:absolute;
}
#barRight{
background:transparent url(../img/slider.png) no-repeat scroll right center;
height:25px;
position:absolute;
right:0;
top:0;
width:20px;
}
#overlay{
/* The overlay that darkens the page when an event is clicked */
position:absolute;
z-index:10;
top:0;
left:0;
background-color:#222222;
}
#windowBox{
/* Shows details about the event on click */
position:absolute;
z-index:20;
background-color:#fcfcfc;
padding:10px;
border:2px solid #666666;
overflow:auto;
}
#titleDiv{
/* The title of the windowBox */
background:#F5F5F5;
border:1px solid #EEEEEE;
color:#AAAAAA;
font-size:1.5em;
margin-bottom:10px;
padding:5px 10px;
}
#date{
/* The date on the bottom of the windowBox */
bottom:20px;
color:#999999;
font-size:0.8em;
font-style:italic;
position:absolute;
right:15px;
padding:2px;
background:#FCFCFC;
}
#highlight{
/* The blue highlight that moves with the scroll bar */
height:30px;
position:absolute;
z-index:0;
left:0;
top:0;
background:#E6F8FF;
border:1px solid #D4E6EE;
border-width:0 1px;
}
.clear{
clear:both;
}
/* The styles below are only necessary for the demo page */
h1{
background: #F4F4F4;
border-bottom: 1px solid #EEEEEE;
font-family: "Myriad Pro",Arial,Helvetica,sans-serif;
font-size: 20px;
font-weight: normal;
margin-bottom: 15px;
padding: 15px;
text-align: center;
margin: 0px 4px;
position: absolute;
bottom: 0;
width: 268px;
}
h2 {
font-family:"Myriad Pro",Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
padding-right:40px;
position:relative;
right:0;
text-align:right;
text-transform:uppercase;
top:-48px;
}
a, a:visited {
color:#0196e3;
text-decoration:none;
outline:none;
}
a:hover{
text-decoration:underline;
}
p.tutInfo{
/* The tutorial info on the bottom of the page */
padding:10px 0;
text-align:center;
position:absolute;
bottom:0px;
background:#F4F4F4;
border-top:1px solid #EEEEEE;
width:100%;
}
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : Feb 18, 2017, 12:11:54 PM
Author : Rodrigo
*/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/script.js"></script>
</head>
<body>
<div id="main">
<div id="timelineLimiter"> <!-- Hides the overflowing timelineScroll div -->
<div id="timelineScroll"> <!-- Contains the timeline and expands to fit -->
<div class="event">
<div class="eventHeading green">Nov -0001</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Pala</th>
<th style="text-align:right">0</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Pala</div>
<div class="date">November 30, -0001</div>
</div>
</li><h1>0</h1></ul></div>
<div class="event">
<div class="eventHeading blue">May 2015</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Enfriadores Azul</th>
<th style="text-align:right">1,800,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Enfriadores Azul</div>
<div class="date">May 14, 2015</div>
</div>
</li><li class=""><table><tr>
<th>Ladrillo</th>
<th style="text-align:right">1,592,100</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo</div>
<div class="date">May 30, 2015</div>
</div>
</li><h1>3,392,100</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Feb 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Puntilla con Cabeza 2pulg Propack 5kg</th>
<th style="text-align:right">5,100,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Puntilla con Cabeza 2pulg Propack 5kg</div>
<div class="date">February 5, 2017</div>
</div>
</li><h1>5,100,000</h1></ul></div>
<div class="event">
<div class="eventHeading green">Apr 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Varilla 5/8 pulgada x 6 metros cuadrada</th>
<th style="text-align:right">6,800,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Varilla 5/8 pulgada x 6 metros cuadrada</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Segueta 24 dientes paquete 10 unidades 3906-300...</th>
<th style="text-align:right">3,276,430</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Segueta 24 dientes paquete 10 unidades 3906-300...</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Vitaperico1 Kg</th>
<th style="text-align:right">72</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Vitaperico1 Kg</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Llanta 275/55 Rin 20 111S CC LX20</th>
<th style="text-align:right">400</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Llanta 275/55 Rin 20 111S CC LX20</div>
<div class="date">April 14, 2017</div>
</div>
</li><li class=""><table><tr>
<th>Parasol Lateral 3 m Blanco</th>
<th style="text-align:right">28</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Parasol Lateral 3 m Blanco</div>
<div class="date">April 14, 2017</div>
</div>
</li><h1>10,076,934</h1></ul></div>
<div class="event">
<div class="eventHeading blue">Jul 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Escobilla Limpiafondo</th>
<th style="text-align:right">1,240,000,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Escobilla Limpiafondo</div>
<div class="date">July 14, 2017</div>
</div>
</li><h1>1,240,000,000</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Aug 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Espatula Extra Ancha</th>
<th style="text-align:right">42</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Espatula Extra Ancha</div>
<div class="date">August 14, 2017</div>
</div>
</li><h1>42</h1></ul></div>
<div class="event">
<div class="eventHeading green">Sep 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Guantes Hilaza Neon Puntos PVC 2 Caras</th>
<th style="text-align:right">280,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Guantes Hilaza Neon Puntos PVC 2 Caras</div>
<div class="date">September 14, 2017</div>
</div>
</li><h1>280,000</h1></ul></div>
<div class="event">
<div class="eventHeading blue">Oct 2017</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Ladrillo hor 3 huecos 9x20x80 9.5k 6.25und/m2</th>
<th style="text-align:right">336,002,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo hor 3 huecos 9x20x80 9.5k 6.25und/m2</div>
<div class="date">October 14, 2017</div>
</div>
</li><h1>336,001,664</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Feb 2021</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Guante Tipo Examen Nitrilo Tallla S x 100 Und</th>
<th style="text-align:right">1,408</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Guante Tipo Examen Nitrilo Tallla S x 100 Und</div>
<div class="date">February 2, 2021</div>
</div>
</li><h1>1,408</h1></ul></div>
<div class="event">
<div class="eventHeading green">Sep 2022</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Alambre #8 100 metros amarillo Conectores y Cables</th>
<th style="text-align:right">1,750,000,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Alambre #8 100 metros amarillo Conectores y Cables</div>
<div class="date">September 18, 2022</div>
</div>
</li><h1>1,750,000,000</h1></ul></div>
<div class="event">
<div class="eventHeading blue">Nov 2022</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Ladrillo</th>
<th style="text-align:right">308,025</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo</div>
<div class="date">November 25, 2022</div>
</div>
</li><h1>308,025</h1></ul></div>
<div class="event">
<div class="eventHeading chreme">Apr 2030</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Asoleadora Curva Chocolate</th>
<th style="text-align:right">750,000,000</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Asoleadora Curva Chocolate</div>
<div class="date">April 16, 2030</div>
</div>
</li><h1>750,000,000</h1></ul></div>
<div class="event">
<div class="eventHeading green">Nov 2098</div>
<ul class="eventList">
<li class=""><table><tr>
<th>Ladrillo refractario 24x12,5x4 1,5 kilos 36u/m2...</th>
<th style="text-align:right">54</th>
</table></tr>
<div class="content">
<div class="body"></div>
<div class="producto">Ladrillo refractario 24x12,5x4 1,5 kilos 36u/m2...</div>
<div class="date">November 25, 2098</div>
</div>
</li><h1>54</h1></ul></div>
<div class="clear"></div>
</div>
<div id="scroll"> <!-- The year time line -->
<div id="centered"> <!-- Sized by jQuery to fit all the years -->
<div id="highlight"></div> <!-- The light blue highlight shown behind the years -->
<div class="scrollPoints">Nov -0001</div><div class="scrollPoints">May 2015</div><div class="scrollPoints">Feb 2017</div><div class="scrollPoints">Apr 2017</div><div class="scrollPoints">Jul 2017</div><div class="scrollPoints">Aug 2017</div><div class="scrollPoints">Sep 2017</div><div class="scrollPoints">Oct 2017</div><div class="scrollPoints">Feb 2021</div><div class="scrollPoints">Sep 2022</div><div class="scrollPoints">Nov 2022</div><div class="scrollPoints">Apr 2030</div><div class="scrollPoints">Nov 2098</div> <!-- This PHP variable holds the years that have events -->
<div class="clear"></div>
</div>
</div>
<div id="slider"> <!-- The slider container -->
<div id="bar"> <!-- The bar that can be dragged -->
<div id="barLeft"></div> <!-- Left arrow of the bar -->
<div id="barRight"></div> <!-- Right arrow, both are styled with CSS -->
</div>
</div>
</div>
<
</div>
</body>
</html>
关于html - 将总计放在 DIV 的底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42499942/
如何在不使用垫片的情况下将 View 定位在底部。我知道我可以在 VStack 中放置一个间隔器和我的 View 来实现它,但我不想使用一个间隔器,因为我不希望我的 View 占据所有的垂直空间。使用
我想让文本 float 到现有标签的右下角。 我仍在使用旧学校表(编辑现有代码)。我的代码是这样的:
我有一个包含文本的表格单元格,但我怎样才能使文本齐平到单元格的顶部或底部(上面没有填充)?我试过垂直对齐,但它仍然没有到达顶部“边缘”。 我的代码 3.2325
我想用 javascript 打印一个特殊的页面 div。 function printDiv(divName) { var printContents = document
我需要检查元素是否距离页面底部 x 像素,以动态加载新内容。目前,即使栏位于底部,scrollTop 和高度也不匹配。 jquery 是允许的,虽然基本的 javascript 会更有帮助。 最佳答案
我正在用 pygame 重新制作 flappy bird,但主题是星球大战。我已经完成了游戏的美术和一般格式设置,但现在我需要调整细节。我一直在改变数字,试图让光剑完全到达屏幕的顶部和底部,因为目前有
http://pastehtml.com/view/bfzerlo1m.html 如何将红色框放在橙色 div 底部的 CENTER + 中? 红框的高度和宽度都是动态的,每个框都不同.. (它需要在
我正在研究和测试表格。到目前为止,我成功地使用 following fiddle 将选择框列表中的项目一项一项地向上和向下移动。 . 代码实例(向上移动): function moveUp() { $
在设计 IOS 应用程序时,我可以在页脚放置“后退”按钮功能吗? 最佳答案 我认为指南中没有任何内容禁止这样做,但是您的潜在用户习惯于将后退按钮放在左上角,因此除非您有充分的理由将后退按钮放在底部,并
你可以只在顶部/底部而不是所有(T、B、L、R)设置单元格填充或间距吗? 最佳答案 CSS? td { padding-top: 2px; padding-bottom: 2px; } 关于H
我正在为我的 React 应用程序使用无限滚动,并具有检测我何时恰好位于页面底部的功能: const [isFetching, setIsFetching] = useState(false); //
所以我有一个页面,其中有一个类似聊天的 div,里面充满了文本。它具有固定的高度和宽度(由 css 定义)。 我需要它在每次更新时滚动到底部,这是我到目前为止使用的 JS: $("#div1").an
我遇到了与此处描述的相同的问题:UIWebView doesn't scroll to the bottom of the webpage loaded/created (不幸的是没有人回答) 我有一
我有一个溢出设置为滚动的 div,它本质上是逐行从文件中流式传输数据。我想在流溢出时自动滚动到 div 的底部,但不使用“单击此处滚动到底部”按钮。 我已经知道 scrollTop = scrollH
我正在 Android studio 中构建一个应用程序,但遇到了一些问题。我在 main_activity.xml 中有一个 ImageView
我有一个扩展 Jpanel 的类,里面有一个动画。我有两个操作按钮可以停止和启动它,但是我需要这些按钮出现在 Jpanel 的底部。我已经尝试过: add(go,BOTTOM_ALIGNMENT);
嗨,我正在为ios设备(ipad)开发phonegap / cordova项目。该应用程序通过蓝牙键盘接收输入文本(因为我不想在屏幕上显示键盘)。到目前为止,应用程序可以按预期接收输入。但是关于外观,
我想在底部放置一个页脚。 出于某种原因,它会像这样出现。 在 index.html 中,我有:
我得到了一个带有内联编辑功能的 jqgrid,并且可以添加新行。 目前,新行以“编辑”模式显示在网格顶部。我想要的是将新行添加到网格底部,因为我的“添加新行”按钮位于自定义底部分页器中... 有人知道
在 Swift 3 中,我以编程方式创建了一个(底部)工具栏,其中包含自定义按钮,中间用灵活的垫片分隔自定义按钮,将一个(“上一个”)推到左边缘,另一个(“下一个”)到 View 的右边缘。但我无法显
我是一名优秀的程序员,十分优秀!