Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
694 views
in Technique[技术] by (71.8m points)

html中元素偶尔会错位,需要刷新网页才可以正常显示

css样式:

  ul{
    overflow-y: hidden;
  }
  li{
    float: left;
    list-style: none;
    width: 510px;
    height: 250px;
    border: solid 2px #68afb9;
    margin: 20px;
  }

其中一个li:

<li class="card">
            <a class="area_demos" name="area_demos">
              <img :src="sun" width="50px" height="50px">
              <h3>旭日图</h3>
              <h6>旭日图(Sunburst)由多层的环形图组成,在数据结构上,内圈是外圈的父节点。因此,它既能像饼图一样表现局部和整体的占比,又能像矩形树图一样表现层级关系。</h6>
            </a>
            <div class="buttons">
              <el-link type="success" underline=true href="http://localhost:8081/#/SunburstLayout">点击体验</el-link>
            </div>
          </li>

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

建议不要使用float


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...