我创建了这段代码.
<a href="#">
<!-- BEGIN #btnBox .btnBox -->
<div id="btnBox2" class="btnBox">
<div class="btnleft"></div> <!-- BEGIN & END .btnleft -->
<!-- BEGIN .btncenter -->
<div class="btncenter">
<div id="btnText2" class="btnText">Want more? - check out my recent work</div>
</div>
<!-- END .btncenter -->
<div class="btnright"></div> <!-- BEGIN & END .btnright -->
</div>
<!-- END #btnBox .btnBox -->
</a>
Run Code Online (Sandbox Code Playgroud)
当我在W3 HTML验证下验证代码时,它给了我一个错误:
Line 163, Column 41: document type does not allow element "DIV" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag
Run Code Online (Sandbox Code Playgroud)
我在用
<!DOCTYPE HTML PUBLIC …Run Code Online (Sandbox Code Playgroud) 我想在每个列表之间设置20px的距离.
HTML:
<div id="folio">
<ul>
<li><img src=""></li>
<li><img src=""></li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
#folio { width:1200px; }
#folio ul li { width:588px; height:273px; display:inline-block; background:#cf5b6f; border:1px solid #8e1028; list-style:none; }
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
我正在处理一个项目,但在增大或减小网站字体大小时遇到问题。我正在使用 wordpress、Genesis 框架,但无法通过 javascript 增加/减少字体大小。
请帮助我解决这个问题。
我使用以下代码;
genesis_after Hook 这个钩子在结束标签之前立即执行。
<script type="text/javascript" language="javascript">
$(document).ready(function(){
// Reset Font Size
var originalFontSize = $('html').css('font-size');
$(".resetFont").click(function(){
$('html').css('font-size', originalFontSize);
});
// Increase Font Size
$(".increaseFont").click(function(){
var currentFontSize = $('html').css('font-size');
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*1.2;
$('html').css('font-size', newFontSize);
return false;
});
// Decrease Font Size
$(".decreaseFont").click(function(){
var currentFontSize = $('html').css('font-size');
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*0.8;
$('html').css('font-size', newFontSize);
return false;
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
genesis_before_content 钩子这个钩子在内容列之前(在#content div 之外)立即执行。
<a href="#" …Run Code Online (Sandbox Code Playgroud) 我在IE中的网站设计很难过.它实际上在mozilla,chrome,opera和safari中运行良好但在IE中非常混乱.所以我的问题:"有没有像任何插件萤火虫为IE "?
当用户单击Upload Prize单选按钮时,jQuery应显示#upload_prize_file_box输入.当用户单击" 提供访问"单选按钮时,应显示pa_block.
当我尝试使用下面的代码执行此操作时,页面不响应.
HTML:
<tr>
<td id="optBox">
<input name="opt-radio" type="radio" id="upload_prize" value="upload_prize" checked="checked" />
<label for="upload_prize">Upload Prize</label>
<input name="opt-radio" type="radio" id="provide_access" value="provide_access" />
<label for="provide_access">Provide Access</label>
</td>
</tr>
<tr>
<td id="upload_prize_file_box" colspan="2" style="display:none;">
<input type="file" name="upload_prize_file" id="upload_prize_file" />
</td>
</tr>
<tr>
<td height="160" colspan="2" id="pa_block" style="display:none;">
<table width="100%" border="0">
<tr>
<td width="32%">URL</td>
<td width="68%"><input type="text" name="pa_url" id="pa_url" /></td>
</tr>
<tr>
<td>Username</td>
<td><input type="text" name="pa_username" id="pa_username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="text" name="pa_password" …Run Code Online (Sandbox Code Playgroud)