博主信息
博文 5
粉丝 0
评论 0
访问量 4488
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
居中 google示例 伪元素隐藏文本8.13(2)
1999权限的博客
原创
827人浏览过

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>文本控制</title>
       <style type="text/css">
           p{font-weight:bold;/*定义粗体*/
font-size: 30px;/*定义字体大小*/
font-family: 楷体;/*定义字体*/

}
           h1{text-align: center; /*left right*/
height: 100px;
               background: blueviolet; /*背景色还不知道???*/
line-height: 100px;/*定义行高*/
}

           span{font-size: 40px; font-weight: bold; font-family: Georgia;}
           img{width: 300px; height: 400px;}
           b{display: block;width: 300px;height: 40px;background: pink;overflow: hidden; margin-bottom: 100px;}
           b:hover{ overflow: visible;}/*默认值 内容不会缩减 元素会被呈现在元素框外*/
</style>

</head>
<body>
<h1>php中文网</h1>
<p>php中文网</p>
<br>
<!--谷歌logo-->
<span style=color:#0388F1>G</span>
<span style="color:rgb(245,28,39)">o</span>
<span style="color: #ffe80e">o</span>
<span style=color:#0388F1>g</span>
<span style="color: #39ff18">l</span>
<span style="color: #ffe80e">e</span>

<!--图文gun

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本控制</title>
        <style type="text/css">
            p{font-weight:bold;/*定义粗体*/
                 font-size: 30px;/*定义字体大小*/
                 font-family: 楷体;/*定义字体*/

            }
            h1{text-align: center; /*left right*/
                height: 100px;
                background: blueviolet; /*背景色还不知道???*/
                line-height: 100px;/*定义行高*/
            }

            span{font-size: 40px; font-weight: bold; font-family: Georgia;}
            img{width: 300px; height: 400px;}
            b{display: block;width: 300px;height: 40px;background: pink;overflow: hidden; margin-bottom: 100px;}
            b:hover{ overflow: visible;}/*默认值 内容不会缩减 元素会被呈现在元素框外*/
        </style>

</head>
<body>
<h1>php中文网</h1>
<p>php中文网</p>
<br>
<!--谷歌logo-->
<span style=color:#0388F1>G</span>
<span style="color:rgb(245,28,39)">o</span>
<span style="color: #ffe80e">o</span>
<span style=color:#0388F1>g</span>
<span style="color: #39ff18">l</span>
<span style="color: #ffe80e">e</span>

<!--图文gun排-->
<br>
<p style="display: inline-block;width: 300px;height: 400px;">字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容</p>
<img src="images/1.gif">
<br>
<br>
<img src="images/1.gif">
<b>字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容</b>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

排-->
<br>
<p style="display: inline-block;width: 300px;height: 400px;">字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容</p>
<img src="images/1.gif">
<br>
<br>
<img src="images/1.gif">
<b>字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容字体内容</b>
</body>
</html>2.png

批改状态:合格

老师批语:
本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学