html - 如何制作下标光标?

标签 html css

我已经使用下面的代码制作了一个上标光标。如何将光标制作为下标?

@-webkit-keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: red }
}

@-moz-keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: red }
}

body {
    width:1px;
    height:9px;
    border-left:5px solid red;
    -webkit-animation: 1s blink step-end infinite;
    -moz-animation: 1s blink step-end infinite;
}

Fiddle Link

输出:

enter image description here

如何放置如下:

enter image description here

最佳答案

我能够对其进行一些边框和填充修改:

@-webkit-keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: red }
}

@-moz-keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: red }
}

body {
    width:0px;
    height:2px;
    padding-bottom:9px;
    padding-left:5px;
    border-bottom:10px solid red;
    -webkit-animation: 1s blink step-end infinite;
    -moz-animation: 1s blink step-end infinite;
}
subscript

关于html - 如何制作下标光标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30475416/

相关文章:

html - 如何将导航栏居中,主页保存其颜色

css - 主体宽度小于内部元素

CSS 下拉菜单不会显示在使用 IE(所有版本)的适当区域

php - 是否可以通过让 results.php 文件引用 main.css 文件中的代码来格式化搜索结果?

html - 现在可以使用<input type ="tel"/>了吗?

html - 如何使用 CSS 为 JQUERY 内容 slider float 箭头和元素符号点?

Javascript 单击事件未在所有类元素上运行

html - 水平居中顶部导航,同时在左侧保留 Logo ,在右侧保留语言选择

html - 如何水平滚动我的 HTML 表格?

html - 单击按钮时更改边框颜色