首页 \ 问答 \ Silverlight 5还会支持OSX吗?(Will Silverlight 5 still support OSX)

Silverlight 5还会支持OSX吗?(Will Silverlight 5 still support OSX)

Silverlight 5还会支持OSX吗?


Will Silverlight 5 still support OSX?


原文:https://stackoverflow.com/questions/5666296
更新时间:2022-04-29 21:04

最满意答案

谈到这个问题......

例如,这是马铃薯的原始尺寸(原始尺寸):

<img src="https://images-na.ssl-images-amazon.com/images/I/811fGdwqf%2BL._SX355_.jpg">

假设我们将该土豆设置为40%的宽度......并且突然之间我们决定在不触及该元素的情况下将其设置为80%。

如果我们在属性中使用属性表示,我们通常可以通过写这个普通的CSS来覆盖它:

img {
  width : 80%;
}
<img src="https://images-na.ssl-images-amazon.com/images/I/811fGdwqf%2BL._SX355_.jpg" width="40%">

但是,如果我们在该属性内使用内联样式,则需要使用!important来使用CSS覆盖该属性样式。

img {
  width : 80% !important;
}
<img src="https://images-na.ssl-images-amazon.com/images/I/811fGdwqf%2BL._SX355_.jpg" style="width:40%;">

来源: https//css-tricks.com/presentation-attributes-vs-inline-styles/


Referring to the question...

For example, this is original size of Potato (original size):

<img src="https://images-na.ssl-images-amazon.com/images/I/811fGdwqf%2BL._SX355_.jpg">

Let's say we set that Potato as 40% width... and suddenly we decide to make it 80% without touching that element.

If we're using attribute presentation inside that attribute, we can normally override it by writting this normal CSS:

img {
  width : 80%;
}
<img src="https://images-na.ssl-images-amazon.com/images/I/811fGdwqf%2BL._SX355_.jpg" width="40%">

But, if we're using inline style inside that attribute, we need to use !important to override that attribute style using CSS.

img {
  width : 80% !important;
}
<img src="https://images-na.ssl-images-amazon.com/images/I/811fGdwqf%2BL._SX355_.jpg" style="width:40%;">

source: https://css-tricks.com/presentation-attributes-vs-inline-styles/

相关问答

更多
  • 在绝大多数情况下这绝对是足够的。 请记住链接的正确顺序是: a:link { color: #c00 } /* unvisited links */ a:visited { color: #0c0 } /* visited links */ a:hover { color: #00c } /* user hovers */ a:active { color: #ccc } /* active links */ outline可能看起来很“丑陋”,但这是一个非常重要的辅 ...
  • 为什么内联CSS或JS不好? 示例 :
    这是OOCSS方法中的修饰语。 它促进了DRY的软件开发原则。 正确应用时,它可以提高可维护性,因为特定的属性 - 值对不会在代码的其他部分重复。 但是,您的示例命名相当差。 padding-bottom-small或padding-bottom-med将是一种改进,更具有前瞻性,因为给定的常量值可能会在某个时间发生变化,并且名称中的常量将不再准确。 向标记添加非语义类名称确实存在缺陷,这使得HTML难以维护。 DRY的好处通常会超过这个缺点。 此外,预处理器允许纯粹在CSS中进行OOCSS开发(例如,使用 ...
  • 您必须通过在ul和li元素之间使用“直接后代”选择器来区分第一级和第二级子菜单,即> 这样,您可以将这两个级别的CSS拆分为: nav > ul > li:hover > ul { display: block; font: inherit; z-index: 10000; } nav > ul > li > ul > li:hover > ul { display: block; position: absolute; left: 230px; top: 0; font: ...
  • 如何组织HTML,CSS和Javascript文件 我将概述推荐的结构来组织HTML5应用程序中的文件。 这不是试图创造任何一种标准。 相反,我将提供一个如何组合和命名文件的方式方便的建议。 你的项目 假设您正在构建一个HTML5应用程序。 在某些情况下,您可以使用服务器的根作为主容器,但为了本文的目的,我将假设您的HTML5应用程序包含在一个文件夹中。 在此文件夹中,您必须创建应用程序索引文件或主入口点。 appcropolis项目 我-的index.html 通常,您的应用程序将由HTML,CSS,图像 ...
  • 您可以使用这三个链接开始 http://www.w3schools.com/ html和css的良好资源 http://css-tricks.com/真正的css学习资源 http://reference.sitepoint.com/css 当然,youtube教程是我最好的选择 https://www.youtube.com/watch?v=LqvFIuVlyP8&list=PL41lfR-6DnOruqMacTfff1zrEcqtmm7Fv https://www.youtube.com/results ...
  • 此示例将div附加到父容器,并为其添加一些CSS样式。 $(document).ready(function(){ var theNewDiv = $("
    ").appendTo("body"); theNewDiv.css({"height": "100px", "width": "100px", "background-color":"blue"}); });