首页前端开发JavaScripthtml怎么实现上角标效果

html怎么实现上角标效果

时间2024-01-29 09:46:03发布访客分类JavaScript浏览596
导读:收集整理的这篇文章主要介绍了html怎么实现上角标效果,觉得挺不错的,现在分享给大家,也给大家做个参考。先来看看效果:(推荐教程:htML视频教程)实现代码:<!DOCTYPE html><html><head...
收集整理的这篇文章主要介绍了html怎么实现上角标效果,觉得挺不错的,现在分享给大家,也给大家做个参考。

先来看看效果:

(推荐教程:htML视频教程)

实现代码:

!DOCTYPE html>
    html>
    head>
        meta charset="UTF-8">
        tITle>
    制作角标的方法/title>
        script src="http://cdn.static.runoob.COM/libs/jquery/1.10.2/jquery.min.js">
    /script>
        style>
          .con{
                height: 250px;
                width: 200px;
                margin: 0 auto;
                overflow: hidden;
                margin-top: 100px;
                position: relative;
                background-color: #4cd964;
          }
      .subscript{
            color: #fff;
            height: 30px;
            width: 100px;
            position: absolute;
            right: -30px;
            text-align: center;
            line-height: 30px;
            font-family: "黑体";
            background-color: #0c60ee;
            -moz-transform:rotate(45deg);
            -webkit-transform:rotate(45deg);
            -o-transform:rotate(45deg);
            -ms-transform:rotate(45deg);
            transform:rotate(45deg);
      }
        /style>
    /head>
    body>
    div>
        div>
          角标    /div>
    /div>
    /body>
    /html>
    

相关推荐:html教程

以上就是html怎么实现上角标效果的详细内容,更多请关注其它相关文章!

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

html

若转载请注明出处: html怎么实现上角标效果
本文地址: https://pptw.com/jishu/590918.html
利用html实现进度条效果的方法 html文档中怎么把图片作为背景?

游客 回复需填写必要信息