Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在图像旁边保留更新的文本_Html_Css_Image_User Experience - Fatal编程技术网

Html 在图像旁边保留更新的文本

Html 在图像旁边保留更新的文本,html,css,image,user-experience,Html,Css,Image,User Experience,我将文本放置在图像旁边。我使用AngularJS使文本动态变化。我希望无论发生什么,文本都能放在图像旁边,并且不会溢出 CSS: HTML: 试试看文本是否对齐:对齐;工作。我不知道它会流到哪里去。但你也许应该看看单词包装 .album-art{ float: left; height: 115px; width: 115px; margin-left: 15px; margin-right: 15px; } .player{ backgroun

我将文本放置在图像旁边。我使用AngularJS使文本动态变化。我希望无论发生什么,文本都能放在图像旁边,并且不会溢出

CSS:

HTML:


试试看文本是否对齐:对齐;工作。我不知道它会流到哪里去。但你也许应该看看单词包装
.album-art{
    float: left;
    height: 115px;
    width: 115px;
    margin-left: 15px;
    margin-right: 15px;
}

.player{
    background-color: black;
}

.now-playing-text {
    color: white;
    float:left;
}

.gotham-bold-text {
    font-family: gotham-bold;
}

.gotham-book-text {
    font-family: gotham-book;
}

.playing-text {
    width: 100%;
    height: 130px;
    display: block;
}
   <ion-view title="Now Playing">
    <ion-nav-buttons side="left">
        <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
    </ion-nav-buttons>
<ion-content class="player">
    <div class="now-playing">
        <canvas class="visualizer"></canvas>
    </div>
    <div class="container-text">
    <div class="playing-text"><img class="album-art" src="{{art}}"><h1 class="now-playing-text"><div class="gotham-bold-text">{{title}}</div></h1></div>
    </div>
</ion-content>
</ion-view>