首页 > 作文

html css 布局小细节

更新时间:2023-04-03 15:12:24 阅读: 评论:0

学了两个月的html和css每天都重复一样的生活,敲着大同小异的代码,这样的生活枯燥无味。我腻了,我也累了!小米首页算是我写的第三个静态页面,写了好久,很多细节都把握不好,下面的这个简单的布局细节是我觉得最有趣的了萌呆萌呆的!记录下来,留个回忆!

效果图:鼠标经过的时候改变背景颜色!

话不多说,直接上代码!

html代码如下:

<div class="radius">                                <ol>                                    <li class="radiusone"><span class="point">1</span></li>                                    <li class="radiustwo"><span class="pointone">2</span></li>                                    <li class="radiustwo"><span class="pointone">3</span></li>                                    <li class="radiustwo"><span class="pointone">4</span></li>                                </ol</div>

css代码如下:

.radius {    position: absolute;    width: 100%;    bottom: 15px;    text-align: center;    left: 0;}.radiusone 北京大阅兵{    display: inline-block;    widht: 10px;    height: 10px;    padding: 10px;    margin: 0 2px;    cursor: default;}.radiusone .point {    display: block;    width: 6px;    height: 6px;    border: 2px solid #f5f5f5;    border-color: #ff6700;    border-radius: 6px;    text-align: left;    overflow:三拼音节 hidden;    text-indent: -9999em;}.radiustwo {    display: inline-block;    widht: 10px;    height: 10px;    padding: 10px;    margin: 0 2px;    cursor: pointer;}.radiustwo .pointone {    display: block;    width: 6px; 广州中秋活动   height: 6px;    border: 2px solid #f5f5f5;    border-color: #ff6700;    border-radius: 6px;    text-align: left;    ov红河卫生职业学院erflow: hidden;    text-indent: -9999em;    background-color: #b0b0b0;    border-color: #fff;}.radiustwo .pointone:hover {    background打网球的好处-color: #ffac13;    color: #ffac13;}

代码不长,怕遗忘,记录下动情一刻!

本文发布于:2023-04-03 15:12:23,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/f6540d5f0f8f2171e9a8f47a67d2b399.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:html css 布局小细节.doc

本文 PDF 下载地址:html css 布局小细节.pdf

标签:代码   红河   细节   我也
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图