phperlinxinlan

jQuery设置样式css

一、设置单个样式

$(\'.div\').css(\'padding-top\',\'8.6rem\');

二、设置多个样式

$(\'.div\').css({\'width\': "240px",\'height\': "240px",\'display\':\'block\'});

 

发表于 2019-06-05 11:39  dreams7433  阅读(4142)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2022-01-01
  • 2021-09-05
  • 2022-01-30
  • 2021-11-01
  • 2022-02-02
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-11-30
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案