我想知道是否可以在特定視口的媒體查詢中隱藏'管道'(例如:|)字符嗎?可能隱藏媒體查詢中的特定字符?
我不知道,因爲我有一個使用它們作爲分隔,但在移動視口渲染真的很差菜單,所以將LOVE,如果我能在某種程度上只是隱藏起來。
我想我可能不得不在移動視口中使用一些jQuery與我定義的CSS?
有什麼建議嗎?
更新10:38上午:非常感謝你們的回覆。我試過建議添加類到span標記,現在我的管道不會顯示交叉,下面是footer.php中的標記,我有和相應的隱藏在媒體Q中。
<li class="f"><a href="#" class="scrolltime">EXPLORE</a> <span class="pipe"> | </span></li>
<li class="f"><a href="#" class="scrolltime"> FOR</a><span class="pipe"> | </span></li>
<li class="f"><a href="#" class="scrolltime">ENHANCED</a><span class="pipe"> | </span> </li>
<li class="f"><a href="/iframe/buybutton.html" class="fancybox-iframe" style="color:#C6C699;">Iframe</a></li>
</ul>
CSS3:
/* Smartphones (Landscape) ----------- */
@media only screen and (min-width: 320px) and (max-width: 480px) {
#topvidarea {
margin-left: 24%;
margin-right: 20%;
margin-top: -265px;
max-width: 400px;
}
#topbgimg { display: none; }
#topbtn, #topbtn2, #topbtn3 {
border: 0 solid #C6C699;
display: inline;
float: left;
font-family: Georgia;
margin-right: 5px;
text-align: center;
width: 122px;
}
#topvidarea {
margin-left: 24%;
margin-right: 20%;
margin-top: 15px;
max-width: 400px;
}
#footer a {
font-size: 8px;
margin: 0;
padding: 12px;
text-indent: 1px;
}
.f {
float: none;
margin-top: -2px;
padding-left: 0;
}
.pipe { display: none; }
}
你可以分享相關的代碼,或者更好的做一個[fiddle](http://jsfiddle.net/)嗎? – 2012-03-12 14:29:39