没事写写css
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="Scripts/jquery-1.10.2.min.js"></script>
<style type="text/css">
ul, li {
margin: 0;
padding: 0;
}
.biaoti {
border: 1px solid red;
color: red;
margin-top: 10px;
height: 40px;
}
ul {
margin-top: 0.1px;
list-style: none;
height: 100%;
}
ul li {
text-align: center;
list-style-type: none;
margin-left: -1px;
float: left;
padding-left: 0px;
border: 1px solid #0094ff;
height: 100%;
width: 16.5%;
}
#left {
border: 1px solid #0094ff;
width: 80%;
float: left;
height: 40px;
}
#right {
margin-left: 80%;
border: 1px solid #000000;
width: 20%;
height: 40px;
}
.direction {
height:50%;
border-bottom: 1px solid #ff00dc;
}
</style>
<script type="text/javascript">
$(function () {
alert(1);
$("#right .direction").eq(0).on("click", function () {
// alert("up");
if (pageIndex < pages) {
pageIndex++;
changeNum();
}
})
$("#right .direction").eq(1).on("click", function () {
//alert("down");
if (pageIndex > 1) {
pageIndex--;
changeNum();
}
})
});
function changeNum() {
var startRecord = (pageIndex - 1) * pageSize + 1;
var endRecord = pageIndex * pageSize;
var newHtml = "";
newHtml+="<ul>"
for (var i = startRecord; i <= endRecord; i++) {
if (i > rows) { break;}
newHtml+="<li ><div style=\"margin-top:5%\">"+i+"</li>"
}
newHtml+="</ul>"
$("#left").html(newHtml);
}
var pageIndex = 1;
var pageSize = 6;
var rows = 31;
var pages = Math.floor((rows - 1) / pageSize) + 1;
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 100%;">
<div class="biaoti">
<div id="left">
<ul>
<li ><div style="margin-top:5%">01</div></li>
<li><div style="margin-top:5%">02</div></li>
<li><div style="margin-top:5%">03</div></li>
<li><div style="margin-top:5%">04</div></li>
<li><div style="margin-top:5%">05</div></li>
<li><div style="margin-top:5%">06</div></li>
</ul>
</div>
<div id="right">
<div class="direction" style="background:#0094ff">
<div style="text-align: center;">+</div>
</div>
<div class="direction" style="background:#808080">
<div style="text-align: center;">-</div>
</div>
<%-- <div class="direction">
<div style="text-align: center;">down1</div>
</div>--%>
</div>
</div>
<div class="biaoti">
<ul>
<li>11</li>
<li>12</li>
<li>13</li>
<li>14</li>
<li>15</li>
<li>16</li>
</ul>
</div>
</div>
</form>
</body>
</html>
没事写写css的更多相关文章
- LOJ 10155 - 「一本通 5.2 例 3」数字转换
前言 从现在开始,这个博客要写一些题解了.起初,开这个博客只是好玩一样,没事就写写CSS.JS,然后把博客前端搞成了现在这个样子.以前博客只是偶尔记录一些东西,刷题也从来不记录,最近受一些学长的影响, ...
- 一个五年 Android 开发者百度、阿里、聚美、映客的面试心经
花絮 也许会有人感叹某些人的运气比较好,但是他们不曾知道对方吃过多少苦,受过多少委屈.某些时候就是需要我们用心去发现突破点,然后顺势而上,抓住机遇,那么你将会走向另外一条大道,成就另外一个全新的自我. ...
- 《IT蓝豹》挑战独立开发项目能力
做了5年的android开发,今天没事写写刚入行不久的时候第一次独立开发项目的心得体会, 当时我刚工作8个月,由于公司运营不善倒闭了,在2011年3月份我开始准备跳槽, 看了一周andro ...
- oracle、mysql、sql server等;流行数据库的链接驱动配置
系统的写博客的时间不多,但是还想一直写来坚持,就没事写写积累下来的知识点吧 #ORACLE #jdbc.driver=oracle.jdbc.driver.OracleDriver#jdbc.url= ...
- 二分查找法 java
前几天去面试,让我写二分查找法,真是哔了狗! 提了离职申请,没事写写吧! 首先二分查找是在一堆有序的序列中找到指定的结果. public class Erfen { public static int ...
- 工作的准备:atoi,itoa,strcpy,memcpy,strcmp,二分查找,strcat
对常见的几个函数,周末没事写写,绝对是笔试面试中非频繁,前面n届学长无数次强调了,大家就别怀疑了.从今天开始,每天10道题. int atoi(const char* str) { if(str==N ...
- xcode 执行时模拟器不可选的问题
好久没写博客了,上一次是什么时候都想不起来了. 之前总认为脑袋记住了,用过了就能够了,干嘛要写博客,简直浪费时间.事实上没事写写博客优点还是挺多的.这样既能够对自己用过的和学到的东西做一个总结,也能提 ...
- Python集成开发环境(Eclipse+Pydev)
刚開始学习python,就用Editplus, Notepad++来写小程序, 后来接触了Sublime Text2.认为很不错,没事写写代码.就用编辑器Sublime Text2,最好再配搭一个ap ...
- 屌丝程序猿赚钱之道之taobao 2
续上篇,之前写的案例,都是比較0基础的. 案例4: 代写情书.软文.论文等等. 这是我一个同学的真实故事. 我隔壁寝室的小王平时没事就爱谢谢博客.逛逛论坛.大二的时候接触了威客网,開始在网上 ...
随机推荐
- awk指令的使用
awk是一个强大的文本分析工具,相对于grep的查找,sed的编辑,awk在其对数据分析并生成报告时,显得尤为强大 awk工作流程是这样的:读入有'\n'换行符分割的一条记录,然后将记录按指定的域分隔 ...
- UVA - 10934 Dropping water balloons (dp,逆向思维)
题目链接 题目大意:给你n个规格一样的气球和一栋大楼的高度,求最少试验几次能测出气球最高在哪一层掉下来不破. 如果这道题想用(dp[i][j]=用i个气球测出j高度的楼需要几次)来作为状态的话,那你就 ...
- POJ - 3150 :Cellular Automaton(特殊的矩阵,降维优化)
A cellular automaton is a collection of cells on a grid of specified shape that evolves through a nu ...
- HihoCoder1139 二分·二分答案
描述 在上一回和上上回里我们知道Nettle在玩<艦これ>,Nettle在整理好舰队之后终于准备出海捞船和敌军交战了.在这个游戏里面,海域是N个战略点(编号1..N)组成,如下图所示其中红 ...
- HUST 1010 The Minimum Length
There is a string A. The length of A is less than 1,000,000. I rewrite it again and again. Then I go ...
- [BZOJ5248][多省联测2018]双木棋chess
bzoj luogu sol 首先,要保证一个格子的左边和上方都放满了棋子,就需要这个点的左上方那个矩形都放满了棋子. 这样放棋子状态就会是一个自左下至右上的轮廓线. 状态数?\(C_{20}^{10 ...
- bzoj 3625(CF 438E)The Child and Binary Tree——多项式开方
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=3625 http://codeforces.com/contest/438/problem/E ...
- bzoj 3629 [JLOI2014]聪明的燕姿——约数和定理+dfs
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=3629 如果要搜索,肯定得质因数分解吧:就应该朝这个方向想. **约数和定理: 对于任意一个大 ...
- What makes an inferred latch? how To avoid creating inferred latches? when do you know you need latches?
What makes an inferred latch?For combinatorial logic, the output of the circuit is a function of inp ...
- [转载]Linux驱动-SPI驱动-概述
转载地址http://blog.csdn.net/droidphone SPI是"Serial Peripheral Interface" 的缩写,是一种四线制的同步串行通信接口, ...