小编owe*_*edd的帖子

为什么证明内容:只适用于Firefox?

所以,我有一些容器作为flex的代码,justify-content: right;并且在CSS中具有属性和值,这使得子元素仅在firefox中转到容器的右侧,这很奇怪,因为从一些引用如CSS-tricks或者W3school这个值无效或者它不存在且值正确justify-content: flex-end;.如果你从firefox看到这个问题,你必须注意到文本右对齐.那么,为什么justify-content: right;在firefox中工作?或者它只是一个错误?

<!DOCTYPE html>
<html>

<head>
  <title>test</title>
  <style>
    section {
      display: flex;
      justify-content: right;
    }
    
    .text {
      width: 50%;
    }
  </style>
</head>

<body>
  <section>
    <div class="text">To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign. Reading is …
Run Code Online (Sandbox Code Playgroud)

html css css3 flexbox

10
推荐指数
1
解决办法
1533
查看次数

标签 统计

css ×1

css3 ×1

flexbox ×1

html ×1