摘要: html 点击查看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>首页</title> <link rel="stylesheet" href="./01.css"> </head> <body> <d 阅读全文
posted @ 2022-11-21 11:38 笑到肚子疼 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Title 阅读全文
posted @ 2022-11-21 11:32 笑到肚子疼 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> *{ margin: 0; padding: 0; } .container{ width: 400p 阅读全文
posted @ 2022-11-21 11:31 笑到肚子疼 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> *{ margin: 0; padding: 0; } .container{ margin: 5% 阅读全文
posted @ 2022-11-21 11:31 笑到肚子疼 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .container{ width: 300px; height: 300px; margin: 10 阅读全文
posted @ 2022-11-21 11:30 笑到肚子疼 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 第一种方法 方法: 1.增加hight, 2.浮动隐藏,父标签加上 overflow: hidden; 3. <head> <meta charset="UTF-8"> <title>Title</title> <style> div{ margin: 10px; padding:5px; } #f 阅读全文
posted @ 2022-08-12 16:58 笑到肚子疼 阅读(31) 评论(0) 推荐(0) 编辑
摘要: <title>Title</title> <style> h1,ul,li,a,body{ margin:0; padding:0; text-decoration: none; } #box{ width: 300px; border: 1px solid deeppink; /*上下为0左右居中 阅读全文
posted @ 2022-08-10 17:02 笑到肚子疼 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 列表样式 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .title{ font-size: 18px; font-weight: bold; /*首行缩进*/ 阅读全文
posted @ 2022-08-09 16:59 笑到肚子疼 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <title>Title</title> <style> h1{ color:rgba(0,255,255,0.9); /*文字居中*/ text-align: center; } /*首行缩进两个字符*/ .p1{ text-indent: 2em; } /*设置一个高度*/ .p3{ backg 阅读全文
posted @ 2022-08-08 17:22 笑到肚子疼 阅读(13) 评论(0) 推荐(0) 编辑
摘要: <title>Title</title> <style> /*去掉下划线*/ a{ text-decoration: none; color:deepskyblue; } /*鼠标悬停是的颜色*/ a:hover{ color: pink; font-size: 20px; } /*鼠标点击是会变色 阅读全文
posted @ 2022-08-08 17:21 笑到肚子疼 阅读(15) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示