2013-05-11 61 views
3

我想为我的网站使用twitter bootstrap。它看起来不错,但现在我需要添加用户的消息(如论坛或Twitter上的消息)。换句话说,它应该显示简短的文本,提交时间,用户的图像,可能有一些投票要素。是否有使用twitter bootstrap的用户消息模板?

这些元素是否已经有CSS模板?

+1

最接近你想要的样子可能是popover。但没有具体的,你想我知道的 – 2013-05-11 09:36:01

+0

你能更具体吗?你可以用tb创建任何html5。网站像https://wrapbootstrap.com/出售模板。 – 2013-05-12 09:16:10

+1

这不是OT吗?这是一个开放式的请求,更好地向搜索引擎或论坛提出,而不是编程问题。 – Barney 2013-05-24 16:00:32

回答

3

你会发现“内置”Bootstrap最接近的是“媒体对象”。

<div class="media"> 
    <a class="pull-left" href="#"> 
    <img class="media-object" data-src="holder.js/64x64"> 
    </a> 
    <div class="media-body"> 
    <h4 class="media-heading">Media heading</h4> 
    My text 
    </div> 
</div> 

http://twitter.github.io/bootstrap/components.html#media

你需要自己添加额外的元素。

0

引导提供了alert类:

<div class="alert"> 
    <strong>Warning!</strong> Example warning! 
</div> 

如果包括引导JavaScript的,那么你就可以得到一个关闭按钮:

<div class="alert"> 
    <button type="button" class="close" data-dismiss="alert">&times;</button> 
    <strong>Warning!</strong> Example warning! 
</div> 

它也有一些颜色(默认为橙色,你可以添加使它成为红色,绿色或蓝色的课程)。

docs包含进一步的细节。

相关问题