我有一个带有 CSS 的 boxxy 盒子,里面有一些信息。我有一个名为“description”的字符串,它在盒子外面运行(它被切断了,所以它没有在盒子外面运行,但是仅显示第一行),而不是包装:
图表:
这是什么:
[heyooo this is a]
[ ]
我想要的是:
[heyooo this is a]
[sentence ]
这是我认为的html:
<div id="boxxy-list">
<ul class="additional-artists">
@foreach ($artists as $artist)
<li>
<div class="boxxy">
<a href="/artists/{{$artist->id}}" class="anchor-hover">
<img src="{{ $artist->image_path}}" alt="{{$artist->stage_name}}" height="200" width="200">
<span class="details">
<h2>{{$artist->stage_name}}</h2>
<p class="desc">{{$artist->description}}</p> //this is the portion that is not wrapping like it should.
<span class="pupdate">{{ $artist->city}}, {{ $artist->state}}</span>
<span class="viewlink">Play My City</span>
</span>
</a>
</div>
</li>
@endforeach
</ul>
</div>
CSS:
.boxxy { display: block; margin: 0 auto; background:#fff; margin-bottom: 22px; -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); width: 200px; padding:7px 7px;
transition: box-shadow 0.3s linear 0s; -webkit-
transition: box-shadow 0.3s linear 0s; -moz-
transition: box-shadow 0.3s linear 0s;
-o-transition: box-shadow 0.3s linear 0s;
}
.anchor-hover {display: block; position: relative;}
.anchor-hover img { position: relative; }
.anchor-hover .details { opacity: 0; position:absolute; top: 0px; left:0px; width: 200px; height:200px; margin: 0; padding-top: 0px; padding-left:0px; font-size: 1.2em; line-height: 0.1em; color:#8c8a7d; background: rgba(255,255,255,0.85); overflow: hidden; transition: opacity 0.25s linear 0s; -webkit-
transition: opacity 0.25s linear 0s; -moz-transition: opacity 0.25s linear 0s; -o-transition: opacity 0.25s linear 0s;
}
.anchor-hover .details h2 { font-weight: bold; font-size: 1.1em; color: #3c527d; margin-bottom: 8px; text-decoration:none;
}
.anchor-hover .details p.desc { font-family:'proxima-nova';
font-weight:500;
font-size:14px;
color:#8c8a7d;
text-decoration:none;
}
.anchor-hover .details span.pubdate { position: absolute; bottom: 10px; left:10px; font-weight: 500; font-family: 'proxima-nova', Tahoma, sans-serif; }
.anchor-hover .details span.viewlink { position:absolute; bottom: 10px; right: 10px; font-weight:bold; color: #3c527d; font-size: 1.3em;}
.anchor-hover:hover .details {opacity: 1;}
.boxxy:hover {box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset, 0 0 10px rgba(71, 123, 164, 0.7); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset, 0, 0, 10px rgba(71, 123, 164, 0.7); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset, 0, 0, 10px rgba(71, 123, 164, 0.7);}
#boxxy-list a {text-decoration: none;}
你看到我没有的东西吗?谢谢您的帮助。