动态css属性 [英] Dynamic css Property

查看:57
本文介绍了动态css属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,基本上我想做以下事情:

Okay basicly I wanna do the following:

展开 | 选择 | Wrap | 行号

推荐答案

试试这个...
展开 | 选择 | Wrap | 行号


谢谢!让我思考,并使其工作:
thanks! Got me thinking, and got this working:
展开 | 选择 | Wrap | 行号


我认为一切都可以通过 setAttribute ,除了innerHTML。

一切都意味着...所有样式属性和标记内的所有属性。但是innerHTML是标签之外的东西。所以你可以用一个简单的if语句把它放在一边。


还有什么我想念的吗?
I think everything could be done with setAttribute, except innerHTML.
Everything means... all style properties and all the attributes which come within the tag. But innerHTML is something which lies out of the tag. So may be you could just keep that aside with a simple if statement.

Is there anything else I''m missing?


这篇关于动态css属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆