在ASP.NET中使用CSS主题 [英] Use a CSS theme in ASP.NET

查看:80
本文介绍了在ASP.NET中使用CSS主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从互联网上下载了一个CSS主题.

但是,每当我在ASP.NET程序中使用它时,它看起来都不会像预览中那样吸引人.

I have downloaded a css theme from internet.

But whenever I use it in our ASP.NET program it does not look attractive like it looks in the preview.

How I can use css themes?

推荐答案

必须从ASP.NET引擎输出的HTML页面中引用css文件.您在文档的head部分中需要一个link元素.

您还需要使用提供的css类,并在HTML中内联指定class属性.

一个例子是:
A css file must be referenced from the HTML page that is output from the ASP.NET engine. You need a link element in the head section of your document.

You will also need to use the css classes that were provided and specify the class attribute inline in your HTML.

An example would be:
<img class="styled-image-border" img="path/dir/file.jpg" />



学习合并已下载的CSS主题的最佳方法是查看CSS随附的示例页面.如果没有示例页面,请继续进行下去,否则它将花更多的时间来弄清楚他们正在做什么(如果主题大小很大).

干杯.



The best way to learn to incorporate the css theme you''ve downloaded would be to look at the example page that came with the css. If it doesn''t have an example page, just move on or it''ll take more time than it''s worth to figure out what they were doing (if the theme is of any significant size).

Cheers.


这篇关于在ASP.NET中使用CSS主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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