先来看看效果:
(推荐教程:html视频教程)
实现代码:
立即学习“前端免费学习笔记(深入)”;
nbsp;html>制作角标的方法 .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); }角标
登录后复制
相关推荐:html教程
以上就是html怎么实现上角标效果的详细内容,更多请关注【创想鸟】其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。
发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/2826128.html