html怎么去掉空格


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

<!DOCTYPE html><html lang="en"><head>

    <meta charset="UTF-8">

    <title>Document</title>

    <style>

        body {            margin: 0;            padding: 0;        }

        p {            font-size: 0;/*关键代码*/

            height: 41px;            border-top: 4px solid red;            border-bottom: 1px solid gray;        }

        a {            display: inline-block;            height: 41px;            text-align: center;            line-height: 41px;            text-decoration: none;            padding: 0px 5px;            background-color: red;            font-size: 14px;            font-family: 楷体;        }

        .shouye {            margin-left: 200px;        }

        .shouye:hover {            background-color: gray;        }

    </style></head><body>

    <p>

        <a class="shouye" href="#">设为首页</a>

        <a href="#">手机新浪网</a>

        <a href="#">移动客户端</a>

    </p></body></html>

效果预览:
这里写图片描述

【推荐学习:HTML视频教程】

以上就是html怎么去掉空格的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

Html元素有哪些自带样式,如何去除

关于Html中rel属性的分析

Html中的空格符号有哪些

如何实现Html中鼠标经停时整行(tr)变色

frameset框架怎么用?frameset框架属性的使用

Html中表格form相关的知识讲解(代码示例)

Html实现自定义图片上传按钮

Html下划线怎么设置?Html下划线样式实例分析

怎么在标签中写css样式

Html px、em、pt长度单位

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




打赏

取消

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

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

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

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

评论

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