会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Zeng
Think Twice, Code Once
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
下一页
2023年10月10日
伪类选择器(实现鼠标悬浮字体变色效果)
摘要: 链接框与文本框: 实现鼠标悬浮变色效果 a:link { /*访问之前的状态*/ color: red; } a:hover { /*鼠标悬浮态*/ color: aqua; } a:active { /*鼠标点击不松开的状态:激活态*/ color: black; } a:visited { /*
阅读全文
posted @ 2023-10-10 17:29 wellplayed
阅读(172)
评论(0)
推荐(0)
2023年10月9日
属性选择器
摘要: # 属性选择器是以 [ ] 作为标志的 方法一: [username] { /*把所有含有属性名是username的标签背景色改为红色*/ background-color: red; } 方法二: [username='jason'] { /*找到所有属性名是username并且属性值是jason
阅读全文
posted @ 2023-10-09 21:14 wellplayed
阅读(43)
评论(0)
推荐(0)
组合选择器
摘要: 1.后代选择器 /*后代选择器*/ div span { /*div后代所有的span*/ color: red; } 2.儿子选择器 /*儿子选择器*/ div>span { /*div下一级的后代中的span*/ color: red; } 3.毗邻选择器 /*毗邻选择器*/ div+span
阅读全文
posted @ 2023-10-09 21:05 wellplayed
阅读(55)
评论(0)
推荐(0)
基本选择器
摘要: 1.id选择器 /*id选择器*/ #d1 { /*找到id是d1的标签*/ color: green; } 2.类选择器 /*类选择器*/ .c1 { /*找到class值里包含c1的标签*/ color: red; } 3.元素(标签选择器) /*(元素)标签选择器*/ span { /*找到所
阅读全文
posted @ 2023-10-09 20:53 wellplayed
阅读(55)
评论(0)
推荐(0)
列表标签
摘要: 1.无序列表 <ul type="square"> <li>第一项</li> <li>第二项</li> <li>第三项</li> <li>第四项</li> </ul> 2.有序列表 <ol type="1" start="5"> <li>111</li> <li>222</li> <li>333</
阅读全文
posted @ 2023-10-09 18:50 wellplayed
阅读(34)
评论(0)
推荐(0)
MySQL数据排序的SQL语句
摘要: 1.升序排序 select * from xxx order by 字段 2.降序排序 select * from xxx order by 字段 desc
阅读全文
posted @ 2023-10-09 16:43 wellplayed
阅读(127)
评论(0)
推荐(0)
MySQL只取第一个值的SQL语句
摘要: # 查询学生表中所有数据 并且只取第一条数据SELECT * FROM student LIMIT 1
阅读全文
posted @ 2023-10-09 16:37 wellplayed
阅读(219)
评论(0)
推荐(0)
2023年9月26日
MySQL修改密码的几种方法
摘要: 方法一:先登录MySQL 命令框输入: set password for 用户名@localhost = password('新密码'); 方法二:使用mysqladmin # 该方法不需要登录 命令框输入: mysqladmin -u用户名 -p旧密码 password 新密码
阅读全文
posted @ 2023-09-26 17:23 wellplayed
阅读(111)
评论(0)
推荐(0)
2023年9月21日
# 用random模块生成随机验证码
摘要: def get_code(n=4): # 默认生成4位 # 定义一个空字符串 code = '' for i in range(n): # 将生成的随机整数转化为字符串 random_int = str(random.randint(0, 9)) # 0-9之间的整数 # 将ASCII编码转为字母
阅读全文
posted @ 2023-09-21 14:49 wellplayed
阅读(37)
评论(0)
推荐(0)
2023年9月19日
Win10除了应用软件都打不开了怎么办?
摘要: win10除了系统软件,其他应用软件都打不开了
阅读全文
posted @ 2023-09-19 21:10 wellplayed
阅读(184)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
下一页
公告