VScode学习前端-01

小问题合集:

vscode按!有时候没反应,有时候出来,是因为------>必须在英文状态下输入!

alt+shift+a对所选片段进行注释/*-------*/

ALT+鼠标选中。可以多选内容

ALT+单击,选择可以统一对多个地方进行操作

ALT+SHIFT+A多行注释

把鼠标放在函数、变量等上面,会自动弹出提示,但挡住视线,有点不习惯。

打开file->preferences->settings,编辑settings.json,增加:即可

"editor.hover.enabled": false

快捷键修改:

双击修改即可:

小知识合集:

  • 常用颜色:

白色:#fff

橙色;#ff6700

  • 当选中鼠标经过输入框时,添加黄色边框
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            .input {
            border: 1px solid #555; /*输入框的边框设置,宽度 实线 颜色*/
            outline-color: #fd9f3e; /*点击输入框时,输入框的颜色*/
            width: 250px; /*输入框的宽度*/
            font-size: 0.8em; /*输入框中的字号大小*/
            padding: 0.5em; /*输入框中的行间距*/
            /* line-height: inherit; /*控制行与行之间的垂直距离,继承父类该元素类型*/
        }
            .top {
                margin: 20px 50px;
                font-size: 1.25em;
            }
            span {
                display: block;
                margin: 10px 0px;
            }
            h1 {
                margin: 50px 10px;
            }
        </style>
    </head>
    <body>
        <h1>用户登录</h1>
        <div class="top">
            <span>用户名<label style="color: red">*</label></span>
            <input type="text" class="input" placeholder="请输入用户名">
        </div>
        <div class="top">
            <span>密码<label style="color: red">*</label></span>
            <input type="password" class="input" placeholder="请输入密码">
        </div>
    </body>
    </html>

    效果:

  • 空格的输入方法:

一个空格的话直接键盘输入空格即可,多个空格使用(and(&)nbsp)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值