css制作定位图标

 时间:2024-10-13 16:45:24

1、打开html开发软件,在html开发工具中新建一个html代码页面。

css制作定位图标

3、制作底部为尖角的圆。创建<style>标签,然后在该标签里面设置icon-map类样式底部为尖角的圆。css代码:.icon-罪焐芡拂map{ color:#333; width:30px;height:30px; margin:30px auto; border:solid 2px currentColor; border-radius:16px 16px 16px 0; -webkit-transform:rotate(-45deg); -moz-transform: ratate(-45deg); transform:rotate(-45deg); }

css制作定位图标

5、回到html代码页面,使用after伪类对icon-map设置一个小圆,然后使用postion把小圆放到尖角圆居中的位置。css代码:.icon-map:after{ content: ""; width: 8px; height: 8px; border:2px solid currentcolor; position: absolute; top:9px; left:9px; border-radius: 100%; }

css制作定位图标

7、页面所有代码。可以直接复制所有代码,粘贴到新建html页面保存后使用浏览器打开即可看到效果。所有代码:媪青怍牙<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>地图定位图标 </title> <style> .icon-map{ color:#333; width:30px;height:30px; margin:30px auto; border:solid 2px currentColor; border-radius:16px 16px 16px 0; -webkit-transform:rotate(-45deg); -moz-transform: ratate(-45deg); transform:rotate(-45deg); } .icon-map:after{ content: ""; width: 8px; height: 8px; border:2px solid currentcolor; position: absolute; top:9px; left:9px; border-radius: 100%; } </style> </head> <body> <div class="icon-map"></div> </body></html>

  • 物联网所面临的安全攻击有哪些呢?
  • vf6.0表单文本框控件,密码验证效果
  • js如何定义textarea的边框为虚线
  • 认识dreamweaver cs6工作界面
  • Arduino光控声音实验
  • 热门搜索
    家常菜谱大全 千足虫怎么消灭 羊蹄的做法大全 牛骨汤的做法大全 大学物理公式大全 狗死了怎么处理 虫子大全 怎么删除电脑密码 ps怎么把图片变小 东革阿里怎么吃