Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
手写笔:向javascript中生成的id添加样式_Javascript_Html_Css_Jquery Ui_Stylus - Fatal编程技术网

手写笔:向javascript中生成的id添加样式

手写笔:向javascript中生成的id添加样式,javascript,html,css,jquery-ui,stylus,Javascript,Html,Css,Jquery Ui,Stylus,我正在使用一个jquery,我想覆盖与其input字段关联的CSS 不幸的是,该字段的id似乎是在页面加载时动态生成的: <input type="text" id="dp1382434269539" style="position: absolute; top: 372.9375px; width: 0px; left: 579.8125px;"> 我们使用的是手写笔,我希望能够为任何具有和以“dp”开头的id的输入设置样式--有没有一种简单的方法可以这样选择id?使用。例如

我正在使用一个
jquery
,我想覆盖与其
input
字段关联的CSS

不幸的是,该字段的
id
似乎是在页面加载时动态生成的:

<input type="text" id="dp1382434269539" style="position: absolute; top: 372.9375px; width: 0px; left: 579.8125px;">

我们使用的是手写笔,我希望能够为任何具有和以“dp”开头的
id
输入设置样式--有没有一种简单的方法可以这样选择
id

使用。例如:

input[id^="dp"] {
    /* your styling */
}