摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>伪元素选择器</title> <style> /*元素选择器*/ p{ color: red; } /*伪元素选择器*/ p::before{ content: 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>伪类选择器</title> <style> a:link{ background-color: red; } a:hover{ color: #bbffaa; 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>背景</title> <style> header{ height: 180px; background-image: url("bilibili.png"); 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>层模型小实例</title> <style> .img_box{ width: 400px; height: 300px; border: 1px solid 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>固定定位</title> <style> .box{ width: 200px; height: 200px; } .box1{ background-colo 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>绝对定位</title> <style> .box{ width: 200px; height: 200px; } .box1{ background-colo 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>相对定位</title> <style> .box{ width: 200px; height: 200px; } .box1{ background-colo 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>23、浮动小实例</title> <style> body{ background-color:#f8f9fa; } .header{ box-shadow: 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>css布局</title> <!-- 一、最基础的是流动布局,就是从上到下--> <!-- 二、浮动--> <!--特点:--> <!--1、会脱离文档流--> 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>overflow</title> </head> <body> <!--当子标签超出父标签后,可以使用overflow属性来处理超出的部分--> <!-- -v 阅读全文