有没有办法在选择中放置输入字段?
<select name="menu_files" class="form-control" >
<option value="new_menu"> <input type="text"></option>
</select>
Run Code Online (Sandbox Code Playgroud) 我试图通过参数进行某种排序.我有这样的XML文件:
<?xml version="1.0" encoding="utf-8"?>
<Root>
<Name>Logos</Name>
<Slides>
<Item file="/upload/portfolio/22.jpg" lvl="1" designer="0001" theme="outline">Destiption one</Item>
<Item file="/upload/portfolio/23.jpg" lvl="1" designer="0002" theme="drawn">Destiption 2</Item>
<Item file="/upload/portfolio/24.jpg" lvl="2" designer="0003" theme="outline">Destiption 3</Item>
<Item file="/upload/portfolio/26.jpg" lvl="2" designer="0004" theme="drawn">Destiption 4</Item>
<Item file="/upload/portfolio/27.jpg" lvl="1" designer="0003" theme="outline">Destiption 5</Item>
<Item file="/upload/portfolio/28.jpg" lvl="3" designer="0003" theme="outline">Destiption 6</Item>
</Slides>
</Root>
Run Code Online (Sandbox Code Playgroud)
PHP:
$result = $xml->Slides->xpath('Item');//get all items
$search1 = $result[0]->xpath('Item[@lvl="1"]');//failed(((
Run Code Online (Sandbox Code Playgroud)
如何按属性搜索?我们的想法是Item用所需的attr 输出所有s.
我有以下代码,但跨度的宽度/高度并不真正起作用.
HTML
<div id="amount" class="ch_field3">
<span id="ch_minus">-</span> 3 <span id="ch_plus">+</span>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS
.shop_chekout_item{min-width: 100%; float: left;}
.shop_chekout_item .ch_field3{display: block;float: left; width: 20%;}
.shop_chekout_item #ch_plus,.shop_chekout_item #ch_minus{
background: #ccc;
width: 20px; /*no effect...*/
height: 20px; /*same here :(*/
cursor: pointer}
Run Code Online (Sandbox Code Playgroud) 输入python
SSH 后,在命令行中运行 python。如何退出?我想输入新的“SUDO”命令,但无法退出 python“模式”。
我在JQuery上有以下函数来显示我的工具提示,但是当我尝试添加超时以在显示工具提示之前做出一些延迟没有任何作用(((
$('.help').mouseover(function(){
setTimeout(function{ //this is timeout if i delete this - evrthng goes well
$(this).find('div').stop().fadeIn(900);
var top = $(this).position().top;
var left = $(this).position().left;
var height = $(this).find(".tip").height();
$(this).find(".tip").css('top', top-height);
$(this).find(".tip").css('left', left)
}, 1000);
});
Run Code Online (Sandbox Code Playgroud)
请告诉我,我做错了什么?