发表于: 2022-11-20 23:25:58

0 621


  1. 今天完成了freecodecamp上技术文档项目的撰写,代码放在了这里:https://codepen.io/NancyFeng88/pen/VwdyWxZ。

(本来以为会很难,结果还好,很有成就感!我很棒!!!)

  • 遇到的问题:不知道怎么把导航栏显示在页面的左边,待以后在填坑。

  • 学习到新知识

overflow-y:scroll 裁剪内容 - 提供滚动机制。

list-style-type:disc 为ul列表设置样式

white-space 属性设置如何处理元素内的空白。

如何写导航栏

dispay中block和inline的区别

text-decoration 文本装饰

cursor: pointer   鼠标光标显示



2. 继续研究昨天遇到的困难:

在配置nginx后,想要在本地电脑浏览写的网页,在运行脚本后遇到难题

这是我参照视频改的脚本


#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root  E:/前端/L;
            index  index.html index.htm;
        }


        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }


    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root  html;
    #        index  index.html index.htm;
    #    }
    #}


    # HTTPS server
    #
    #server {
    #    listen       443 ssl;
    #    server_name  localhost;

    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;

    #    ssl_session_cache    shared:SSL:1m;
    #    ssl_session_timeout  5m;

    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    #    ssl_prefer_server_ciphers  on;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

}


这是VS  code终端输出的结果

perl : 无法将“perl”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。

所在位置 行:1 字符: 1

+ perl "e:\前端\L\Untitled-1.pl"

+ ~~~~

    + CategoryInfo          : ObjectNotFound: (perl:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException


昨天在网上查了很久,用了多种方法,仍然无法成功,今天突然发现perl可能是一种语言,VS暂时无法识别,装个perl拓展可能可以,结果还是没有成功。

来个大佬教教我吧!

我还没有进到班级的qq群,希望能尽快和大家一起学习交流。


明天学习任务二。



返回列表 返回列表
评论

    分享到