第二次的实操任务

<!DOCTYPE html>
<html>
<head>
<title>盒子模型</title>
</head>
<link href="盒子模型的.css" type="text/css" rel="stylesheet"/>
<body>
<div id="d1">
    <div id="d2"></div>
    <div id="d3"></div>
    <div id="d4"></div>
    <div>
        <p class="c1">武将技能</p>
        <p class="c2">①琴音  ②业炎</p>
</div>

</div>
</body>
</html>

CSS部分:

#d1
{
    width: 370px;
    height:500px;
    border: solid 1px black;
    background-image: url(周瑜.jpg);
    background-repeat: no-repeat;
margin: 80px 450px;

}

#d2
{
    font-family:"书体坊米芾体";
    font-size: 45px;
    color: white;
    position: relative;
    top: 5px;
    left: 1px;
}

#d3
{
    font-family: "书体坊米芾体";
    font-size: 55px;
    color:black;
    position: relative;
    top: 5px;
    left: 310px;
}

#d4
{
    font-family: "书体坊米芾体";
    font-size: 55px;
    color:black;
    position: relative;
    left: 310px;
}

.c1
{
    width: 350px;
    height:80px;
    font-family: "书体坊米芾体";
    font-size: 30px;
    color: darkslategrey;
    background-color: wheat;
    position: absolute;
    bottom: 57px;
    right: 547px;
}

.c2
{
    font-family: "书体坊米芾体";
    font-size: 28px;
    color: darkslategrey;
    position: absolute;
     bottom: 65px;
    right: 558px;
}

“亲口尝梨知酸甜”……调位置一团乱,绝对定位相对定位啥的以及浮动那些都是瞎搞的。

效果图(丑cry)
周瑜

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值