css - “example” 推特 Bootstrap 中的标题

标签 css twitter-bootstrap

我一直在看"example" heading in twitter bootstrap但这不是我想要的。 我想做的是动态更改内容。

关于这个例子http://jsfiddle.net/YdusM/10/我试着改变<div class="well example" style=""><div class="well example" style="content:"dsd"">但没有成功。

这可能吗??我做错了什么?

谢谢

最佳答案

这行不通,因为它是保存“示例”文本的 :before

你可以这样做 ( JSFiddle )

HTML

<div class="well example tree">Tree</div>

CSS

.tree:before { content: "Tree"; }

关于css - “example” 推特 Bootstrap 中的标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15418235/

相关文章:

css - Mootools .addClass 不起作用

html - 下拉列表中的元素不可点击

css - 悬停时意外延迟

html - Bootstrap3 和导航栏,如何将这个 li 标签右对齐?

javascript - AngularJS 中的新窗口

javascript - 这不应该工作吗? $.getScript ("alert.js");

html - 垂直对齐的 float 元素

javascript - 如何居中对齐 Asp.net 网站中的实际文本框

html - 在跨度悬停事件上保持图像模糊效果

javascript - jQuery 奇怪的 Bootstrap 行克隆行为