2-2编程练习

来源:2-2 编程练习

流下了没有技术的眼泪

2020-02-28 20:22:09

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style>
    .div1{
        background-color: red;
        width: 150px;
        height: 150px;
        position: absolute;
        left: 50%;
        margin-left:-50;
    }
  </style>
</head>
<body>
<div class="div1">
    
    
</div>
</body>
</html>


写回答

1回答

guly

2020-02-29

你好,去掉margin-left:-50; 即可,如果解决您的问题请采纳,祝学习愉快!

0

0 学习 · 9666 问题

查看课程

相似问题

2-3编程练习

回答 1

回答 1

4-11编程练习

回答 1