浏览器实际上是一个渲染工具,比如本界面,大家鼠标右键可以查看源码
[HTML] 纯文本查看 复制代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>【书香编程俱乐部简介】 - 书香编程俱乐部-内门 - 书香雅阁论坛 - Powered by Discuz!</title>
<link href="https://shuxiangyage.net/forum.php?mod=viewthread&tid=1134" rel="canonical" />
<meta name="keywords" content="【书香编程俱乐部简介】" />
<meta name="description" content="【前言】 很多人希望书香可以出编程课程,他们喜欢编程,但网上的视频太长了,一看就想睡觉,而且各类课程五花八门,不知道看什么好。之前书香一直忙着开发其他项目, ... 【书香编程俱乐部简介】 ,书香雅阁论坛" />
<meta name="generator" content="Discuz! X3.4" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2021 Tencent Cloud." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<base href="https://shuxiangyage.net/" /><link rel="stylesheet" type="text/css" href="data/cache/style_1_common.css?PJK" /><link rel="stylesheet" type="text/css" href="data/cache/style_1_forum_viewthread.css?PJK" /><script type="text/javascript">var STYLEID = '1', STATICURL = 'static/', IMGDIR = 'static/image/common', VERHASH = 'PJK', charset = 'utf-8', discuz_uid = '1', cookiepre = 'J9Ad_2132_', cookiedomain = '', cookiepath = '/', showusercard = '1', attackevasive = '0', disallowfloat = 'newthread', creditnotice = '1|威望|,2|金钱|,3|贡献|', defaultstyle = '', REPORTURL = 'aHR0cHM6Ly9zaHV4aWFuZ3lhZ2UubmV0L2ZvcnVtLnBocD9tb2Q9dmlld3RocmVhZCZ0aWQ9MTEzNCZwYWdlPTEmZXh0cmE9', SITEURL = 'https://shuxiangyage.net/', JSPATH = 'static/js/', CSSPATH = 'data/cache/style_', DYNAMICURL = '';</script>
<script src="static/js/common.js?PJK" type="text/javascript"></script>
<meta name="application-name" content="书香雅阁论坛" />
<meta name="msapplication-tooltip" content="书香雅阁论坛" />
<meta name="msapplication-task" content="name=论坛;action-uri=https://shuxiangyage.net/forum.php;icon-uri=https://shuxiangyage.net/static/image/common/bbs.ico" />
<link rel="archives" title="书香雅阁论坛" href="https://shuxiangyage.net/archiver/" />
<script src="static/js/forum.js?PJK" type="text/javascript"></script>
</head>
我这里随便截取一段,这便是服务器发送给浏览器的数据,当浏览器接收到这些数据之后,便会开始进行渲染,画出特定的界面
总结:浏览器是一个渲染工具,起渲染能力的叫做浏览器内核,目前比较出名的有IE内核,Gecko(Firefox内核,火狐浏览器搭载),Webkit(Safari内核,Chrome内核原型,开源)等,浏览器只是个外壳,真正起作用的是核心,大家使用的浏览器可能不同,但只要用的核心一样,基本没啥大区别
我们的课程就是要把这些代码看懂
(点击返回课程目录:https://shuxiangyage.net/forum.php?mod=viewthread&tid=1134)
|