首页 > Web开发 > 详细

没事写写css

时间:2015-12-06 19:04:06      阅读:131      评论:0      收藏:0      [点我收藏+]

<%@ 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>
<style type="text/css">
ul, li {
margin: 0;
padding: 0;
}

.biaoti {
float: none;
width: auto;
clear: left;
border: 1px solid red;
color: red;
margin-top: 10px;
height: 40px;
}

ul {
/*margin-left: px;*/
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 {
/*width:50%;*/
border-bottom: 1px solid #ff00dc;
}
</style>
</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">
<div style="text-align: center;">up1</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

原文:http://www.cnblogs.com/kexb/p/5023927.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!