0%

1. css文件导入方式

css的导入方式有四种:

  • 内联式 :在head头标签中,通过style标签书写css

    使用场景:测试调试环境

    • 格式 :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <head>
    <style>
    p{
    color:blue;
    text-indent:2em;
    }
    </style>
    </head>

  • 外链式 :在head头标签中,通过link标签引入css文件

    • 格式:

    使用场景:正式上线

    1
    2
    3
    4
    <head>
    <link rel="stylesheet" href="./demo.css">
    </head>

  • 导入式 :在head头标签中,通过style标签引入css文件

阅读全文 »

一.HTML (基本01)

准备工作

1.常见的几种文件类型:

*.html *.css *.js *.php *.sql

2.wamp存放位置:~/wamp/www/

3.运行:打开wamp

​ 打开浏览器

​ 地址栏输入localhost

阅读全文 »