ASP.NET控件/CSS交叉引用 [英] ASP.NET control/CSS cross-reference

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

问题描述

我正在尝试提高ASP.NET技能,并且不断使用CSS.基本上,某些CSS命令仅与某些ASP.NET控件(或HTML标记)一起使用.例如,我尝试为Label控件添加用于绝对定位的样式...这被渲染为span标签,在标签文本周围具有绝对定位...无效.因此,我要寻找的是ASP.NET控件和/或HTML标记以及与CSS命令一起使用的列表.我一直没有很好的运气,是否有这样的事情?

解决方案

您将找不到任何这样的列表,因为CSS可以与任何有效的html元素一起使用.它如何与元素一起工作取决于许多因素,例如元素的位置,放置位置以及父元素的属性.

在CSS上找到一本书,或在这里 http://www.w3schools.com/css/default.as [^ ]


I''m trying to improve my ASP.NET skills and I keep tripping up on CSS. Basically some CSS commands only work with some ASP.NET controls (or HTML tags). For example, I tried to add a style for absolute positioning to a Label control ... this was rendered as a span tag with absolute positioning around the label''s text ... which didn''t work. So what I am looking for is a list of ASP.NET controls and/or HTML tags with what CSS commands work with them. I''ve been googling without much luck, is there such a thing?

解决方案

You won''t find any such list because CSS works with any valid html element. How it works with the element depends on a lot of factors, such as, what the element is, where it is placed, attributes of the parent element.

Pick up a book on CSS or look here http://www.w3schools.com/css/default.as[^]


这篇关于ASP.NET控件/CSS交叉引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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