当我<select id="myid" >从我的服务器加载来自ajax的Element时.这个选择器没有工作.但是,当我把这个代码放在html而不是由Ajax加载时,这个选择器运行良好......
$('#myid').change(function(){
alert('OK!');
});
<select id="myid" >
<option>1</option>
<option>2</option>
<option>3</option>
</select>
Run Code Online (Sandbox Code Playgroud)
如何解决这个bug?
我想在没有嵌套 div 的情况下为我的元素设置圆角内部边框border-radius(而不是外部)。border-radius
我的想法是这样的图:

jsfiddle上的 html 源
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#s{
width:200px;
height: 200px;
border:8px solid green ;
border-radius:8px;
background-color: red;
margin:0 auto;
}
</style>
</head>
<body>
<div id="s" >
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这在CSS3中可能吗?