Anchor Tag muß nicht auf Safari Breite des Textes nehmen
Für eine Weile, ich versuche, dies zu implementieren, wo ein Anker-Tag in ein Flex-Box Container ist mit flex-wrap: nowrap
und overflow:auto
jetzt das funktioniert in Google Chrome, aber es doesn Arbeiten Sie nicht in Safari für kleinere Bildschirmgrößen sowie Iphone. Es folgt der Code
<html>
<head>
</head>
<style>
.flex-div {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
overflow-x: auto;
}
.flex-div a {
display: inline-block;
white-space: nowrap;
margin-left: 10px;
margin-right: 10px;
}
</style>
<body>
<div class="flex-div">
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
<a>Modern & contemporary</a>
</div>
</body>
Welche Version von Safari? –
Safari Version 9.1.1 (11601.6.17). Ich habe auch den Screenshot beigefügt. –