html怎么实现上角标效果


本文摘自PHP中文网,作者V,侵删。

先来看看效果:

html怎么实现上角标效果

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

实现代码:

<!DOCTYPE html>

<html>

<head>

    <metacharset="UTF-8">

    <title>制作角标的方法</title>

    <scriptsrc="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怎么实现上角标效果的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

手把手教你使用img标签添加图片效果(知识)

Html img图片怎么设置透明度

Html5实现移动端下拉刷新(原理和代码)

Html中按钮颜色怎么设置

Html怎么设置header

Html如何使用title属性让鼠标悬停来显示文字

Html dir标签怎么用

Html怎样实现图文混排

Html canvas标签怎么用

怎么在head区域引入css

更多相关阅读请进入《Html》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...