English 中文(简体)
我能否在“第8226号”中加入风格?
原标题:Can I add css style to this •?
  • 时间:2010-09-20 18:13:25
  •  标签:
  • html
  • css

我可以为每张<代码>和格式;第8226号;上写一些风格的代码。 代码一在我的网页上使用,例如font-size: 16px;? 感谢。

最佳回答

其他人回答了主要问题;你无法根据案文内容(以超文本内容、类别和字标为依据)具体规定特别安全规则。

您的could的确是使用Javascript,或服务方提供。 替换,以必要的超文本标签(仅以特性的总结版本取代特性)。


这里是一部快速的构件;它可以很容易地避免裂痕(它是一个矿壳),而且你可以在一条轨道上 play印特征(我不得不在工作时复制/印制)。

关键部分是:

.replace("•","<span class= bullet >•</span>")
问题回答

您不能。 无论它是如何编码的(无论是作为直接特性还是作为实体)。

您可以做的最近一点是:<span类别=“bullet”>-</span> 载于bullet

No. With CSS You can only address elements but not certain natures (ok, there are freedoms such as :first-letter. 您需要将其纳入如下内容:span:

<span class="bullet">&#8226;</span>

然后,您可使用<代码>span.bullet来风格这些内容:

span.bullet {
    font-size: 16px;
}




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签