javascript - 如何用 jquery 添加 ul 元素的样式?
问题描述
我想为用 js 创建的 ul 元素设置样式
<ul class="form">
...
<ul>
解决方案
$("ul.form").css({
display: "none",
color: "red",
width, height & other style elements
...
});
推荐阅读
- maven-3 - magnolia 模块生成器中的“有效认证路径”问题
- node.js - 为什么将端口更改为https时节点js套接字不起作用?
- node.js - 从phonegap中的ajax调用调用node.js文件?
- netsuite - NetSuite - 删除时间输入记录
- hadoop - 跨动作动作的 oozie 变量
- c# - 到accord.net的距离和激活网络的区别
- javascript - 持有密钥的未经身份验证的用户的 Firestore 规则
- r - R中的Excel求解器 - 最小化函数
- html - 脚本标签中的 HTML 变量 - Flask
- php - Laravel 5.6 搜索表单