Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
269 views
in Technique[技术] by (71.8m points)

html - 将插件集成到html和css模板中(integrating plugins into html and css templates)

I am working on a css template, which of course helps me to develop a beautiful website.

(我正在使用CSS模板,它当然可以帮助我开发一个漂亮的网站。)

I mean, good to see.

(我的意思是,很高兴看到。)

Now, I am trying to integrate code from all over the web, such as, for example, a beauatiful contact form that I absolutely want in my website.

(现在,我正在尝试集成来自整个网络的代码,例如,我绝对希望在我的网站中使用的漂亮联系表。)

The problem is that the css of the element conflicts with the css of the website and overwrites many rules.

(问题在于元素的css与网站的css冲突并覆盖了许多规则。)

How can I avoid this?

(如何避免这种情况?)

  ask by Salvy95 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

you can add div tag surrounded in page and add a special class or id and define this class before CSS styles.

(您可以在页面中添加div标签,并添加一个特殊的类或id并在CSS样式之前定义此类。)

actually you define the special styles for certain styles

(实际上,您为某些样式定义了特殊样式)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...