我想为只有顶部边框的列表组提供透明背景。现在我得到默认的白色背景。
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用rails 5实现Google分析.由于我想保留我的turbolinks,我正在关注http://railsapps.github.io/rails-google-analytics.html此方法.添加了app/assets/javascripts/google_analytics.js.coffee:
class @GoogleAnalytics
@load: ->
# Google Analytics depends on a global _gaq array. window is the global
scope.
window._gaq = []
window._gaq.push ["_setAccount", GoogleAnalytics.analyticsId()]
# Create a script element and insert it in the DOM
ga = document.createElement("script")
ga.type = "text/javascript"
ga.async = true
ga.src = ((if "https:" is document.location.protocol then
"https://ssl" else "http://www")) + ".google-analytics.com/ga.js"
firstScript = document.getElementsByTagName("script")[0]
firstScript.parentNode.insertBefore ga, firstScript
# If Turbolinks is supported, set up a callback to track pageviews
on page:change. …Run Code Online (Sandbox Code Playgroud)