Fork me on GitHub

随笔分类 -  CSS

摘要:1.CSS3盒子模型 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style> 7 div:first-child { 8 width: 200 阅读全文
posted @ 2019-03-01 18:59 replaceroot 阅读(258) 评论(0) 推荐(0)
摘要:1.CSS样式表分类 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> /*type类型,css为本*/ div { color 阅读全文
posted @ 2019-02-21 17:19 replaceroot 阅读(201) 评论(0) 推荐(0)
摘要:1.CSS字体设置 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> h4 { font: italic bold 14px "微软雅黑"; /*italic为 阅读全文
posted @ 2019-02-21 16:08 replaceroot 阅读(217) 评论(0) 推荐(0)
摘要:1.CSS的层叠性 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> div { color: skyblue; font-size: 12px; } div 阅读全文
posted @ 2019-02-21 14:04 replaceroot 阅读(140) 评论(0) 推荐(0)
摘要:css样式选择器 标签上设置style属性: 1 2 3 4 5 <body> <div style="height: 48px;">第一层</div> <div style="height: 48px;">第二层</div> <div style="height: 48px;">第三层</div> 阅读全文
posted @ 2018-10-21 09:50 replaceroot 阅读(280) 评论(0) 推荐(0)