首页 > 解决方案 > 如何用 jquery 添加 ul 元素的样式?

问题描述

我想为用 js 创建的 ul 元素设置样式

<ul class="form">
...
<ul>

标签: javascripthtmljquerystyles

解决方案


$("ul.form").css({
  display: "none",
  color: "red", 
  width, height & other style elements 
  ...
});

推荐阅读