动态网站设计——笔记

rowspan 使用时 逐一使用可以避免多出一行 脑子多运动一点

clospan 合并行 一样的


第二次课

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="第二次课.aspx.cs" Inherits="第二次课" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
    ul
    {
        list-style-type:none; 去掉下划线
    }
    li
    {
        float:left; 向左滑动
    }
    a
    {
        text-decoration:none;
        display:block;块区域
        width:100px;
        background-color:Gray; 灰色
        color:White;  白色
        text-align:center; 中央
    }
    a:hover 鼠标点上去变色
    {
        background-color:Red;
    
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <ul> 无序列表
    <li><a href=#>首页</a></li>  href=# 空网站 只是用这个连接 但不进去
      <li><a href=#>学习中心</a></li>
        <li><a href=#>考试中心</a></li>
          <li><a href=#>成绩中心</a></li>
    </ul>
    </div>
    </form>
</body>
</html>

效果如图

经验分享 程序员 微信小程序 职场和发展