摘要: position 属性 – static:默认值,没有定位 – relative:相对定位 – absolute:绝对定位 – fixed:固定定位 static定位 • static属性值 相对定位 • relative属性值 – 相对自身原来位置进行偏移 • 偏移设置:top、left、righ 阅读全文
posted @ 2021-07-28 16:31 计算机小Inati 阅读(80) 评论(0) 推荐(0) 编辑
摘要: html标签:分为两大类的标签:1、块元素特点:独占一行,默认的宽度是整行的宽度,默认的高度是由它里面包含的内容决定的,给它指定宽(width)和高(height)例如:h1~h6 p ul li ol dl dt dd.... 2、内敛元素特点:可以跟其他元素共处一行,默认的宽度和高度是由它里面包 阅读全文
posted @ 2021-07-27 11:21 计算机小Inati 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 构成:按顺序:上 右 下 左1、边框 borderborder: 边框线的粗细 边框线的样式 边框线的颜色;分别指定边框border-方向:边框线的粗细 边框线的样式 边框线的颜色;如:border-top border-left border-right border-bottom2、内边距 pa 阅读全文
posted @ 2021-07-26 13:57 计算机小Inati 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 背景:背景颜色 background-color背景图像 background:背景颜色 url(背景图像的路径) 水平定位 垂直定位 是否重复; 是否重复:repeat-x 水平重复 repeat-y 垂直重复 repeat 全部重复(默认) no-repeat 不重复 水平定位 left|rig 阅读全文
posted @ 2021-07-26 13:06 计算机小Inati 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 2层次选择器 (1)后代选择器 选择器1 选择器2 body p (2)子选择器 选择器1>选择器2 (3)紧邻它后面的第一个兄弟元素选择器 选择器1+选择器2 (4)后面的所有兄弟元素选择器 选择器1~选择器2 3伪结构选择器 :first-child :last-child :nth-child 阅读全文
posted @ 2021-07-26 10:56 计算机小Inati 阅读(45) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style type="text/css"> h2 { co 阅读全文
posted @ 2021-07-26 10:55 计算机小Inati 阅读(15) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>制作畅销书排行榜页面</title> <style type="text/css"> h2 { width: 300px; text-indent: 1em; font-size: 阅读全文
posted @ 2021-07-26 10:54 计算机小Inati 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 用户表: uid (主键,自动增长) uname upwd 使用分层实现注册。(必做) 使用分层实现登录。(选做) <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Titl 阅读全文
posted @ 2021-04-17 14:30 计算机小Inati 阅读(54) 评论(0) 推荐(0) 编辑
摘要: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Title$</title> </head> <script type="text/javascript"> functio 阅读全文
posted @ 2021-03-28 17:25 计算机小Inati 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 阅读全文
posted @ 2021-03-13 15:59 计算机小Inati 阅读(42) 评论(0) 推荐(0) 编辑