Home >Web Front-end >HTML Tutorial >[CSS Tips] About


attribute settings_html/css_WEB-ITnose

[CSS Tips] About
attribute settings_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:092061browse

f32b48428a809b51f04d3228cdf461fa color settings

<hr style="border:0;background-color:#ff0000;height:1px;">

If border:0; is not added, although the color changes , but a black border will be displayed. If you don't add height:1px;, it will not be displayed in chrome.
can also be achieved with the following code:

<hr style="border-color:#ff0000;border:0;border-top:1px;">

f32b48428a809b51f04d3228cdf461faAlignment

f32b48428a809b51f04d3228cdf461fa in chrome The default is left aligned. The default in IE is center alignment. To align to the left, use text-align:left.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn