Home > Article > Web Front-end > Call the externally defined CSS file_html/css_WEB-ITnose
HTML part
<html><head> <title>编写外部CSS文件</title> <link rel="stylesheet" type="text/css" href="3.css"></head><body> <h3 align="center">编写外部CSS文件</h3> <hr/> <p>在HTML文件应用链入外部样式表方法调用外部CSS。</p></body></html>
<style type="text/css"><!-- h3 {font-family:黑体;font-size:25px;color:black} p {background:orange;font-family:隶书;font-size:25px;color:blue}--></style>
Browsers are different, it’s hard to explain...Take it slow...
<style type="text/css"><!--//这个注释的意思就是支持的浏览器就显示,不支持的就略过. h3 {font-family:黑体;font-size:25px;color:black} p {background:orange;font-family:隶书;font-size:25px;color:blue}--></style>
Nowadays, browsers have a lot of problems. You have to look for one problem after another. When you encounter this problem, you have a big problem!
080b747a20f9163200dd0a7d304ba388
c196ae0128ce933a13147e31d2ec0cdf
531ac245ce3e4fe3d50054a55f265927
css file confirmation Is this necessary?
080b747a20f9163200dd0a7d304ba388
c196ae0128ce933a13147e31d2ec0cdf
531ac245ce3e4fe3d50054a55f265927
css file confirmation Is this necessary?
No need, write the code directly in the css file