请参阅页面底部的iphone http://jsbin.com/unese4/8中的此演示页面,其中有一个下拉列表打开但无法正常工作.
相对路径在CSS中不起作用,但它是正确的
{ width: 64px; background: url(../images/abc/xyz/bottom-navigation.jpg) no-repeat 0 0; }
Run Code Online (Sandbox Code Playgroud)
Firebug发出此错误

文件夹路径

为了在我正在工作的一个特定设计中创建一个分隔符,我需要在多个元素组之间进行分隔.我只有两个选项:要么我可以在里面包装元素(内部元素的高度不相同)<div>,要么我可以使用<hr>.
如果我使用额外的div,它将只是一个分隔符.
哪个更语义,一个额外div或hr?
该分频器列表的首选语义和可访问标记是什么?

我正在为项目使用jQuery mobile,它使用了这个标记
<ul data-role="listview" data-dividertheme="d" data-inset="true">
<li data-role="list-divider">A</li>
<li><a href="index.html">Adam Kinkaid</a></li>
<li><a href="index.html">Alex Wickerham</a></li>
<li><a href="index.html">Avery Johnson</a></li>
<li data-role="list-divider">B</li>
<li><a href="index.html">Bob Cabot</a></li>
<li data-role="list-divider">C</li>
<li><a href="index.html">Caleb Booth</a></li>
<li><a href="index.html">Christopher Adams</a></li>
</ul>
Run Code Online (Sandbox Code Playgroud)
我认为对于分隔符(A,B,C ...)应该使用HTML标题标记.
我用em,但在嵌套项目面临的问题,所以我决定用%作为锐暗示.
要更改字体的大小,请始终使用百分比作为单位,因为它们的呈现比ems更一致,并且因为它们允许用户启动的大小调整(与像素不同).
如何将px转换为%?像这样是为了Px to em http://pxtoem.com/
编辑
我发现这个例子非常好,但它只有24px.
http://yuilibrary.com/yui/docs/cssfonts/cssfonts-size.html
如何计算%每个尺寸的尺寸px.作为一个例子情况下,根据这个表会是怎样的规模%为45px
我正在看这个幻灯片http://www.slideshare.net/CharJTF/structurals-semantics-controls-and-more-html-5-is-here-3523971,在幻灯片#14上有3个img标签的例子
第三个是没有价值的。HTML 5 允许吗?

是否可以使用CSS在元素(div,span)中创建一个"洞".我知道我可以使用透明图像来做到这一点,但我很想知道它是否可以在CSS中使用.
body {padding:70px; background:url(http://ipadinsight.com/wp-content/uploads/2011/11/AirPlayMirroring_thumb.jpg)}
div {background:red;border-radius:10px;width:400px;height:100px}?
Run Code Online (Sandbox Code Playgroud)
在这里尝试jsfiddle http://jsfiddle.net/xqEV2/

如何通过点击缩略图显示/隐藏大图像?
我需要这样的

在这里试试JSFiddle http://jsfiddle.net/jitendravyas/Qhdaz/
是否可以只使用CSS.如果没有那么jQuery解决方案就可以了.
使用<a href=#">它是好的,即使它没有在相同或新的选项卡中打开任何新页面.
编辑:
我忘了添加.它也应该在iPad上运行
我正在使用
<script src="https://raw.github.com/paulirish/matchMedia.js/master/matchMedia.js"></script>
<!-- <script>
</script>-->
<script>
if (matchMedia('only screen and (min-width : 1025px) and (max-width : 2048px)').matches) {
// smartphone/iphone... maybe run some small-screen related dom scripting?
$( document ).ready( function() {
var $body = $('body'); //Cache this for performance
var setBodyScale = function() {
var scaleFactor = 0.5,
scaleSource = $body.width(),
maxScale = 150,
minScale = 10;
var fontSize = scaleSource * scaleFactor; //Multiply the width of the body by the scaling factor:
if (fontSize > maxScale) fontSize …Run Code Online (Sandbox Code Playgroud) 看到这个例子http://jsfiddle.net/jwmCd/
HTML
<div class="round-buttons">
<a href="#">hello</a>
<a href="#">world</a>
<form method="get" action="/search" id="search">
<input name="q" type="text" size="40" placeholder="Search...">
</form>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS
.round-buttons a:first-child {background:red}
.round-buttons a:last-child {background:green}
Run Code Online (Sandbox Code Playgroud)
.round-buttons a:last-child {background:green} 不适用于这种情况.
动态地可以有更多链接,我想给第一个和最后一个Anchor提供不同的样式.